yashsingh1/xdaforums huggingface dataset:
[Gen8 Android Development] msticninja:
The tablet is very wonky with battery reporting. When I have it charging, it will show 69%(or whatever) for hours, but once I unplug it, it jumps up to whatever level it has actually been charged to in that time.

When under high drain, the same thing basically happens. I'm not sure what they use for the charger circuitry, but it sucks. I wish it had full interfacing like the phones. It would be awesome to be able to use CurrentWidget to get some real data.
[Gen8 Android Development] nenadr:
Thnx. Could you please post android phone model so i can update confirmed list ?
[Gen8 Android Development] msticninja:
Hehe, it's actually a TMOUS Leo1024, AKA the US HTC HD2. I'm running a Desire-based NANDroid ROM on T-mobile. I always thought tethering would be an issue because it was originally a Windows Mobile phone, but it works fine once you fixed RNDIS. I manually entered epc.tmobile.com as my APN, with no user/pass.
[Gen8 Android Development] sazfar13:
OK I have got my Huawei E1691 USB dongle to work with my Archos 101. Service provider is Wind Mobile in Canada.

This is the only reason I decided to go for Urukdroid 0.6

I am very happy.

Some minor issues.

When I click on tether, it tell me the device was unable to connect. When I launch the Dolphin browser, it gives me the message 'no connection to the internet is available' or something like that but when I type in a URL I can actually access the internet.

Also the tethering icon was which was visible when I first set up the tethering profile and connected is no longer visible.

Other observation is that the USB dongle does appear to affect the battery performance.
[Gen8 Android Development] nenadr:
Thanks for confirmation !

That is not that small issue as it might look - you'll also notice sometime that you can't download anything (at least from stock browser), and that all google services (sync, gmail-push most notably) doesn't work either.

What version of mod you have installed 0.4 or some previous ?

Also take a look at ISSUES part of 1st post, 1st issue. Let me know it that helped, or should we investigate further.

Well it 3G modem must draw power from somewhere ;), and how much it draws from USB port, depends on a few things, most notably 3G signal level, and (among other things) based on that, output power of transmiter in 3G modem. Also I've read around, that different model of 3G modems behave differently regarding power consumption.

Anyway, you can try modifying tether_start script adding AT command's that regulate power of the transmitter in 3G dongle if you find AT commands for your model (references to a sites that have information regarding AT commnads, and small tutorial how to edit tether_start script are in 1st post).
[Gen8 Android Development] sazfar13:
I downloaded the latest 0.4 installation files.

OK since you mention what I am experiencing is not a minor issue, there is something I forgot to write. When I ran the installation script, this is the message I got

Mode switch failed. Bye.

But I decided to create a profile anyway and connected using tether. Lo and behold, I was able to connect to the internet. :)

Now that you mention it, a email I sent using gmail took a long time to be sent.

I looked under the ISSUES in your post but I don't think my problem is listed there.

I can run the script again and post the script output when I go home in the evening.
[Gen8 Android Development] nenadr:
No problem, but plese PM me with following: that log from 3Gmodem_detect.sh, and beside that do a 'cat /data/local.prop' and 'cat /data/tether_start' and do a 'cat /proc/modules' and 'cat /proc/bus/usb/devices' when your 3G modem is running the way it runs, and I'll try to figure out what is problem in your situation.
[Gen8 Android Development] TjaXanK:
I'll try this out on my A70s as soon as I get my host cable :) [Huawei Vodafone USB Key]
[Gen8 Android Development] nenadr:
Let's just hope that 100mA max in host mode on A70 will be enough for your type of 3G modem. If not (you can see that from 'dmesg' output, try to hook-it to A70 via powered USB HUB).
[Gen8 Android Development] sazfar13:
After doing some research on the internet I was able to get my Huawei E1691 3G dongle to work. I am now able to see the tether icon, send email, and download files. The only minor issue is that my Archos does not connect the first time. When I press 'tether' again on then it connects to the internet.

My solution is that I relied on this thread

http://www.draisberghof.de/usb_mode...hp?t=586&sid=67146a2a26779dc6b8563f024de88b34

Specifically I made the following change

Here is my changed 12d1:1446 file: (this file can be found under /etc/usb_modeswitch.d folder)

########################################################

# Huawei, newer modems

DefaultVendor= 0x12d1

DefaultProduct=0x1446

TargetVendor= 0x12d1

TargetProductList="1001,1406,140b,140c,1412,141b,1436,14ac"

CheckSuccess=20

MessageContent="55534243000000000000000000000011060000000100000000000000000000"

#MessageContent="55534243123456780000000000000011062000000100000000000000000000"

The 2 changes are shown in bold.

I reran the modem_detect.sh script. After a reboot, I recreated my profile and was able to connect (on the 2nd attempt).

With the original 12d1:1446 file my data stick was having, as Nenad pointed out, issues with modeswitching and the Archos framework was unable to pickup the pppd daemon that started everytime. The implication was that although I could browse the internet, I was unable to see the tether icon on the top right as well could not use the apps to download files or send email from within Archos.

With the new change I can do all of the above. Hopefully my work benefits someone. :)

Thanks to Nenad for helping me find the resolution to this problem.
[Gen8 Android Development] woti23:
i'm stuck in getting a vodafone stick working

i took a look in /system/xbin/3Gmodem_init.sh script, and i believe there is a typo

in line 71 in 0.4 script

N=1
while [ $n -le 3 ]
do
if [ `ls -l /dev/ttyUSB* | wc -l` -ne 0 ]; then
log -t USBTether "/dev/ttyUSB devices found. 3G modem ready for use."
exit 0
else
log -t USBTether "Waiting for /dev/ttyUSB* devices to show up for max 3 sec. Elapsed: $N"
sleep 1
N=`expr $N + 1`
fi

$n is only once used in the script, all other variables are $N

though $n gets never =3

at least with changing to $N now i get the /dev/ttyUSB devices found
[Gen8 Android Development] snickle:
verizon and novatel usb760

Anyone get this to work with verizon or the novatel?

The atz command works, but the next command errors.

Thought i would ask before i spend time troubleshooting.
[Gen8 Android Development] woti23:
in ip-up

case $1 in
ppp1)
/[B]android[/B]/bin/iptables --flush;

.....

there is no /android
[Gen8 Android Development] nenadr:
This one is on Archos - I didn't touch ip-up ;)
[Gen8 Android Development] nenadr:
You have a point here - it is a typo, but it will break out of the loop anyway, as soon as /dev/ttyUSB* devices are "in place", it will wait forever (and not 3 seconds) just in case device is not exposing /dev/ttyUSB* nodes - so this error affects only non-supported devices.

I'll fix this today. Thank you.
[Gen8 Android Development] nenadr:
If I undestood you right - it trows error on "AT+CGDCONT=1,"IP","<your APN configured in tethering wizard>" command (for instance: AT+CGDCONT=1,"IP","gprsinternet" in my case) - this command is used to select access point you are connecting to, and it is very strange that it errors on a that command, because on everything that commects to any type of GSM data network I've been using, that command is used for that purpose.

Try to google for pppd chatscripts for your type of modem and your provider, that someone is claiming to use succesfully, and try that chatscript.
[Gen8 Android Development] woti23:
as archos will probably never release an update again, we'll have all the time of the world to clean the mess up :)
[Gen8 Android Development] woti23:
i have a strange one

at commands:

applying PIN

OK

applying APN

OK

ATDT*99#

NO CARRIER

ppp fails with error 8 in logcat

same usb stick on netbook ubuntu, same at commands applied with serial console (minicomm)

CONNECTED 720000
[Gen8 Android Development] nenadr:
Is it a same /dev/ttyUSB{X} ?

Since 3Gmodem_detect.sh cannot detect which of up to 6 possible serial ports exposed by device, is valid one for pppd - we have to try them ourselves.

It is setting 3Gmod.usbPort in /data/local.prop (defulating to 0).

For instance: On Huawei E1552 ppp is working on /dev/ttyUSB0, but on ZTE MF-190 valid port for ppp is /dev/ttyUSB2 (and I can also send AT commands to /dev/ttyUSB0 and /dev/ttyUSB1 on that modem but can't connect ppp)
[Gen8 Android Development] woti23:
i tried allready all 4 ports - the log shows the same:

found usb 3gmodem dongle in default ....
seems modem doesn't need switching. loading kernel module
usbcore: registered new driver usb serial
...
usb-2.1...2-1:1.0 now attached to ttyUSB0
...
usb-2.1... 2-1:1.3 now attached to ttyUSB3

/dev/ttyUSB devices found. 3G modem ready to use
starting pppd on modem port /dev/tty/USB0 (or 1 or 2 or 3)
[B]pppd: connect script failed
[/B]usb-core: deregistering interface driver usbserial_gerneric
2-1.1.3: ... device disconnected
...
2-1.1.0 ... device disconnected
pppd exited with status 8. 3G modem thetering stopped
[Gen8 Android Development] nenadr:
Please PM me with your /data/tether_start file and connect script (/probably in /etc/network/ppp/chatscripts) that is working for that dongle on Ubuntu (or other linux you've mentioned that 3G modem is working on)
[Gen8 Android Development] nenadr:
integration into UrukDroid 0.7

3G modem/RNDIS tethering support is now integrated into UrukDroid-0.7.

Tutorial is updated (no need for step 2 if you are on UrukDroid-0.7).

I'll keep answering your questions, and help solving potential issues regarding 3G and RNDIS support, in this thread.

Thanks to all of you who tested this, and pointed me to some script bugs.

A teaser ;) : solune is working on adding 3G configuration support to UrukConfig application, so hopefully, soon we will have button for a 3G modem detection and auto-configuration, as well as modem AT command (chatscript) editor. solune - a big thanks for this.
[Gen8 Android Development] snickle:
Uruk 0.7 Issue

I am trying to enable this under Uruk 0.7 (internal install on a101) and have a problem with step 4.

The /data/tether_start file does not get created. I tried the fix listed for Uruk 0.6 and still no change.

Any suggestions?
[Gen8 Android Development] nenadr:
Try starting tethering when you winish creating tethering profile (if your 3G dongle is plugged - unplug it, so that tethering attempt fail for sure that time). I think that will create profile in /data/tether_start.

It seems that with 2.1.8 archos Android framework, integrated in UrukDroid-0.7, something has been changed regarding profile creation - so that profile is created first time you actualy start tethering.

I didn't had a time to investigate it still, and to update tutorial, but I will surely soon enough.
[Gen8 Android Development] thefunkygibbon:
cant seem to get my dongle working at all now after upgrading to uruk0.7

i've re-ran the detect script but it gives me

# 3Gmodem_detect.sh

Supported USB device found !!!! VendorID: 12d1 - ProductID: 1003

New VendorID not detected in usb-modeswitch config file. Set to value of old one !

New ProductID not detected in usb-modeswitch config file. Try to detect it later !

Switching device to usbserial mode !

Looking for target devices ...

No devices in target mode or class found

Looking for default devices ...

No devices in default mode found. Nothing to do. Bye.

Detected ProductID of a switched device: 1003

ProductID before and after usb-switching is same. Meybe device doesn't need switching !

USB device VendorID: 12d1 ProdID: 1003. Probing serial mode

Found required /dev/ttyUSB{X} device nodes.

usbserial.ko module registered and /dev/ttyUSB{X} device nodes created sucessfully.

Writing default configuration to '/data/local.prop' file .....

!!!!!! R E B O O T for configuration to become active !!!!!!

Done.

rebooted, recreated profile but always fail.

even downloaded 0.4.1 and did all that again but same.

any ideas? gunna try 0.3 again in a min
[Gen8 Android Development] thefunkygibbon:
fyi i've tried 0.3 again and its fine. works a treat (obviously RNDIS doesnt work though :()
[Gen8 Android Development] nenadr:
0.4.1 scripts can't be downloaded they are integrated into urukdroid-0.7.

This is strange because I've switched my Huawei E1552 into that usbserial only mode - so it doesn't need usb_modeswitch-ing, using some special Huawei AT commands, and then tested with it that mode, and everything was working OK.

If you have possibility do a clean install of uruk-droid 0.7.

Detect you modem

Reboot.

Install aLogCat from market it help saving logs to sd card.

Start aLogCat, then start recording your log (it has "pause/record button" in its menu)

Start tethering (start it couple of times, with small pauses in between, if it fails)

Use long-press to Home button and switch back to aLogCat and stop recording after a couple of tethering trys.

Then in Terminal Emulator do following:

cat /storage/alogcat/[B]your_recorded_log_filename[/B] | grep USB > /storage/filtered-log.txt

and finaly send me filtered-log.txt generated (attach it to a post here, or send me to email).

NOTE: Please note that 0.3 scripts don't do any logging - so no point to try this if you didn't return to original scripts in urukdroid-0.7 somehow.
[Gen8 Android Development] $aur0n:
This is not necessary - Uruk logs to /data/test/logcat.log (it's rotated) - just like stock OS does.
[Gen8 Android Development] thefunkygibbon:
sorry. not in a position to be able to try. Ive only got a 2gb mem card other than this and that doesnt look like its enough for ud. that and wont have time over next few days anyway :(
[Gen8 Android Development] snickle:
Got it tot work with Verizon on usb760

/data/tether_start

TIMEOUT 5

ECHO ON

ABORT BUSY

ABORT ERROR

ABORT 'NO CARRIER'

ABORT VOICE

ABORT 'NO DIALTONE'

ABORT 'NO DIAL TONE'

ABORT 'NO ANSWER'

ABORT DELAYED

TIMEOUT 12

'' ATZ

OK ATDT#777

TIMEOUT 120

CONNECT ''
[Gen8 Android Development] snickle:
LG-VL600

After I finally getting my Novatel USB760 to work, of course I upgraded to a lg-vl-600 today to get 3g as well as 4g.

Of course the 3Gmodem _detect.sh script does not see it.

Any ideas where to start looking?
[Gen8 Android Development] snickle:
Okay, I think I have figured out a few things:

First, don't get the LG VL600 4G modem, the Pantech UML290.

I could not find a single instance on the net of anyone getting the LG working with any version of linux.

The Pantech UML290 I had working under ubuntu in 5 minutes.

Second thing, neither of these 4G dongles have a usd drive capability, so it seems the detect script never sees them. I am going to download eh script and see if I can disable that part of the test.

Any guidance would be appreciated.

Edit:

Looking at the detect script it expects to see a file in the /system/etc/usb_modeswitch.d directory with a file name consisting of Vendor_Product. My 4g dongle shows up as this in use devices:

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0

D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1

P: Vendor=106c ProdID=3718 Rev= 0.00

S: Manufacturer=Pantech, Incorporated

S: Product=PANTECH UML290

C:* #Ifs= 6 Cfg#= 1 Atr=c0 MxPwr=500mA

I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm

E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=2ms

I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm

E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)

E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=fd Prot=ff Driver=(none)

E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=fe Prot=ff Driver=(none)

E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=f0 Prot=ff Driver=(none)

E: Ad=86(I) Atr=03(Int.) MxPS= 64 Ivl=2ms

E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

So I created a file in the directory called 106c_3718 and made sure the ownership and permissions were right. I still get the error "3Gmodem_detect.sh did not found usable USB device connected". I am missing some thing? Or am I miss reading what the script is doing?
[Gen8 Android Development] phoenixstudio:
mod,pls pin this thread!
[Gen8 Android Development] $aur0n:
modeswitch 1.1.7

Hi,

Do you want Nenadr 1.1.7 modeswitch in Uruk 1.0?
[Gen8 Android Development] rootuser:
Hi all

anyone have working Vodafone (ZTE) K3570-Z ? Kindly share details
[Gen8 Android Development] cq0dq:
Confirm for

Huawei E1553 on i-Mobile 3Gx (TOT's MVNO) Thailand (APN: internet, No User & Pass)
[Gen8 Android Development] danizwam:
I got a problem with my HUAWEI E160.

This is the output of 3Gmodem_detect.sh:

Supported USB device found !!!! VendorID: 12d1 - ProductID: 1003
New VendorID not detected in usb-modeswitch config file. Set to value of old one !
New ProductID not detected in usb-modeswitch config file. Try to detect it later !
Switching device to usbserial mode !

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode found. Nothing to do. Bye.

Detected ProductID of a switched device: 1003
ProductID before and after usb-switching is same. Meybe device doesn't need switching !
USB device VendorID: 12d1 ProdID: 1003. Probing serial mode
Found required /dev/ttyUSB{X} device nodes.
usbserial.ko module registered and /dev/ttyUSB{X} device nodes created sucessfully.
Writing default configuration to '/data/local.prop' file .....
!!!!!! R E B O O T for configuration to become active !!!!!!
Done.

If i proceed the 3Gmodem_init crashes.

# /system/xbin/3Gmodem_init.sh
/system/xbin/3Gmodem_init.sh: line 84: [0: not found

If i start pppd i can connect to the internet, but only once.

Thethering via Controlpanel does not work.

What can i do? ;)
[Gen8 Android Development] cq0dq:
I found this situation on the beginning of my installation too. In my case, I found that I forgot to "su" it before run the script

Hope this may help
[Gen8 Android Development] phoenixstudio:
im using A70IT,,i've the host cable..

im stuck at '/system/xbin/3Gmodem_detect.sh'..

at line :OK, get current device configuration (0)

and then it exiting..

can somebody help me??

-using uruk 0.7 and ZTE MF190
[Gen8 Android Development] rootuser:
Working Vodafone (ZTE) K3570-Z

Ok confirm that it works!

Details:

Manufacturer:	Vodafone (ZTE)

Product:	Vodafone Mobile Broadband K3570-Z (19d2:1007/1008)

Modem port:	/dev/ttyUSB3

/data/tether_start

ABORT BUSY

ABORT ERROR

TIMEOUT 20

'' 'AT'

'OK' 'ATV1'

'OK' 'ATE0'

'OK' 'AT&F&D2&C1S0=0'

OK AT+CGDCONT=1,"IP","internet"

OK ATD*99#

TIMEOUT 30

CONNECT ''

/data/local.prop

#

# START of Uruk-Droid USB 3G modem tethering support

#

3Gmod.enable=on

3Gmod.defVendorID=19d2

3Gmod.defProductID=1007

3Gmod.modemVendorID=19d2

3Gmod.modemProductID=1008

# Change this port value if tethering attempt fails. Valid values from 0-5.

3Gmod.usbPort=3

#

# END of Uruk-Droid USB 3G modem tethering support

#
[Gen8 Android Development] $aur0n:
Hi,

I have some information that "USB 3G tethering that worked in 0.7 does not work anymore (in 1.0)" - any chance you could confirm the problem and where it came from (what I've changed or what is missing)?
[Gen8 Android Development] fly_us:
ah, forgot to report back.

Now i need to run /system/xbin/3Gmodem_init.sh before able to tether in U1.0. Could not tether without it even try to press tether twice (which usually enough to works in 0.7).
[Gen8 Android Development] dexter84:
I can confirm the above, you have to manually run /system/xbin/3Gmodem_init.sh each time you want to use 3G modem.

Strange thing is that even if I run manually /system/bin/tether_start_usb.sh which contains above command it still fails.

If you need some more feedback please specify it.
[Gen8 Android Development] dexter84:
I did a little more digging.

It turns out that the whole mechanism is working as expected if you start tethering manually from terminal.

If you launch it from ui then pppd reports that connect script failed.

This connect script is input to chat binary used for ppp connections, its located at /data/tether_start and should have been created automatically during initial setup of tethering. This wasnt the case in my situation, so Ive created file manually tailoring it towards my operator. If Ill find more Ill post update.

Sent from my A101IT
[Gen8 Android Development] vanpevi:
Hello,

Here is the output of 3Gmodem_detect.sh on my Archos70 with Urukroid 1.0 :

$ $su
# /system/xbin/3Gmodem_detect.sh
Supported USB device found !!!! VendorID: 12d1 - ProductID: 1446
New VendorID: 12d1
New ProductID not detected in usb-modeswitch config file. Try to detect it later !
Switching device to usbserial mode !

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode, class or configuration (1)
Accessing device 002 on bus 002 ...
Getting the current device configuration ...
Error: getting the current configuration failed (error -110). Aborting.

Detected ProductID of a switched device: 1446
ProductID before and after usb-switching is same. Meybe device doesn't need switching !
USB device VendorID: 12d1 ProdID: 1446. Probing serial mode
ls: cannot access /dev/ttyUSB*: No such file or directory
Failed to find required /dev/ttyUSB{X} device nodes in max 5 sec. Elapsed 1.
ls: cannot access /dev/ttyUSB*: No such file or directory
Failed to find required /dev/ttyUSB{X} device nodes in max 5 sec. Elapsed 2.
ls: cannot access /dev/ttyUSB*: No such file or directory
Failed to find required /dev/ttyUSB{X} device nodes in max 5 sec. Elapsed 3.
ls: cannot access /dev/ttyUSB*: No such file or directory
Failed to find required /dev/ttyUSB{X} device nodes in max 5 sec. Elapsed 4.
ls: cannot access /dev/ttyUSB*: No such file or directory
Failed to find required /dev/ttyUSB{X} device nodes in max 5 sec. Elapsed 5.
usbserial.ko module registered and /dev/ttyUSB{X} device nodes created sucessfully.
Writing default configuration to '/data/local.prop' file .....
!!!!!! R E B O O T for configuration to become active !!!!!!
Done.
#

Any idea how to solve it ?

When I launch /system/xbin/3Gmodem_init.sh,

it returns:

/system/xbin/3Gmodem_init.sh : line 84: [0: not found

sh: 3: unknown operand

Help !

Thanks for reading,

V
[Gen8 Android Development] agregatx:
Is it possible to apply this mod withou using UrukDroid? I have my archos rooted by chulri method.

Thanks
[Gen8 Android Development] speedstarrr:
well i got urukdroid and k3570 voda modem

0.7 with 3gmodem 3.4.1 modem configures yes

just red blinks with install

all of operations work g8 but when i test configuration its mess up

if anybody succeed to connect i would like to get help :(
[Gen8 Android Development] speedstarrr:
i found a error just after all show yes all is fine working

there is no /dev/ttyUSB' where can i dound usbtoserial.ko

or is it register as different styl coz i am stuck at red blink on voda k3570
[Gen8 Android Development] nenadr:
Guys, I've just got my A101 back from repair, a day before my vacation, so i didn't been active for a while.

To answer your question short, yes it will be possible in a week or so when I get back home (actualy I'm writing this over Tele2 Croatia using ZTE MF190 dongle on chulri method rooted newest stock Archos firmware). There will only 3G tethering for stock rooted Archos, because stock rooted devices lack necessery modules for EthernetOverUSB tethering.