yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] ATomCZ:
I made requested logs....
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
ATomCZ, these were taken during a smd_tty_work_func dmesg flood ?

I don't see any memory problem here, or I don't read it well. That's strange.

I'll dig into this a bit further, but I guess we need to add trace to kernel.

Best,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] ATomCZ:
Yes it was exported during smd_tty problem. I will try some older kernel like Hastatin 8.0 or older and I will see.

UPDATE: I returned to kernel Hastarin 8.0 and it looks much much better. I played 6 youtube videos. I already think that all is OK, but after I tried to seek video, smd_tty use 70% of CPU and android (mobile) restart itself. It never happen with Hastarin 8.2.
[HD2 Android Q&A, Help & Troubleshooting and Genera] banesi:
i'm using v0.4 and hastarin option3 settings on CM6.1+ build, data is working amazing, when it works :) anyway, here's latest bunch of logs, I hope I didn't took them to late because I was waiting a couple of minutes after I loosed connection.
[HD2 Android Q&A, Help & Troubleshooting and Genera] K_Hismoom:
[EDIT: Post deleted]
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Thanks banesi, and no, they were not too late.

Here, what happen is the same pdp poll, and android deactivate and reactivate data in this case. however it relaunch so quickly that previous pppd was not completely finished. I'll fix that in next release, and I'll try to fake the pdp poll to avoid android messing up with active connection.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
Yeah, I was taking a look at pppd options before from hastarin's thread, but only tried Option 1 (which didn't work very well for the reasons you outlined in that thread). Will take a look at those two options u mentioned.

Probably should also mention with the 2nd set of logs, that was created after Android crashed and did a hot reboot (ie. restart everything except the kernel) when I ran "kill logcat" via gscript (worked fine when done via terminal) to stop the pppd logcat process (since that appears to keep running until pppd terminates).

Finally, fyi I'm capturing my logs using the following script:

logcat -v time -b radio -d > /sdcard/pppd_radiolog.txt &
logcat -v time -s pppd:v -d > /sdcard/pppd_mainlog.txt &
dmesg > /sdcard/pppd_dmesg.txt
sleep 10
ps | grep pppd > /sdcard/ps_results.txt
ps | grep rild >> /sdcard/ps_results.txt
netcfg > /sdcard/netcfg.txt

I'll let you know if I find something with the pppd options, etc and/or a new kind of data connection error occurs :rolleyes:

EDIT: did some digging around on the net, and noticed for the below line, isn't 10.64.64.64 the "default" dummy address that pppd fails back to when it can't find the gateway ip? so looks like connection issue there already...
[HD2 Android Q&A, Help & Troubleshooting and Genera] jae-v:
hey leTama throw a donation link in your sig or drop me your paypal info i'd like to buy you a beer/redbull/coffee or something lol i really appreciate your efforts as i'm sure all of us do
[HD2 Android Q&A, Help & Troubleshooting and Genera] michaelmab88:
ppp data disconnects

Hi,

I just wanted to help out. Here are the logs you want. Let me know if there is more i can do.

Thanks for all your work!

HTC HD2 TMOUSA

Latest Cell series Rom

2.14.50.04
[HD2 Android Q&A, Help & Troubleshooting and Genera] dan138zig:
guys, in my lib folder there's no old wrapper file. so what should i backup in case something goes wrong? thanks.
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
Just some preliminary feedback with using novj / novjccomp pppd options.

novjccomp option didn't seem to do much - got a 3g timeout problem (ie. 3g "connected" but no internet) - see attached logs... might not have captured the entire event though).

novj option seemed to increase connection stability slightly - can't say for sure until I use it a bit more.

Still had (two) dropouts with either one of these options, and ppp negotiation still took a while (like how I described it last time - see logs) though.

Hope these logs are useful again.

Going to check out the other pppd options and see if any of them will help some more.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hey Jae-v,

Thanks! Much appreciated... Here you are.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi michaelmab88,

Reading your log, I don't see anything wrong except a drop that is resumed by wrapper even if one tentative failed. Could you give more detail ?

Thanks,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Ok, they look similar to the previous you made.

Another potential lead we should follow is the laborious negotiation that I have seen in few occasions, we see a lot of :

11-16 19:49:40.316 D/pppd (15642): sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]

11-16 19:49:41.316 D/pppd (15642): rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]

It seems that pppd and radio do not agree on this, pppd says, I want an IP, radio replies, uses ms-dns1/3 and wins address, and I guess pppd repeat asking "I want an IP" instead of "I want an IP and I will use these ms-dns/wins".

I'll check pppd code for this to see if there is an option somewhere for it or if we could patch it to behave better.

By the way, sorry if my answers are a bit cryptic sometimes, but I'm using the thread as a log to remind me things I have in mind.

Thanks,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] kaizer hanz:
just want to ask, this kernel test is support Extended Battery 2300mAh..? :D
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Test Kernel

Hi Guys,

I took a look at kernel regarding the dreaded "tty_prepare_flip_string fail" and cpu problem.

I see two reasons for this error message:

- first, kernel is out of memory. I won't enter in details, but there is multiple kind of memory useable by kernel and smd is using a rather constrained type.

- second, tty has too many characters pending, it has a limit in the code that we may exceed.

Worse, as it is coded, it won't recover when kernel reach this point.

So, to help me understand the problem, I did hack kernel sources to add more detailed error messages in dmesg and I added two possible workarounds when the kernel is in this situation. Again, this is very experimental.

I don't have the problem myself so I would be grateful if someone with the problem could test the kernel on first post and report here the dmesg when problem occurs. If you do so, don't forget to keep a backup of your previous kernel.

If the two workarounds are effective (which I doubt, it would be too easy, but hey, who knows ? :)), I'd like to see the dmesg anyway to understand the cause.

Thanks,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Lol, no :D

You were quicker than me.

It's rather old, and don't have 720p camera enabled.

But anyway, you don't have to keep it for a long time, just get the smd_tty problem logs and you can go back to your usual ;)

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
hey dan138zig,

It can't be, wrapper is mandatory to have 2G/3G connection. You're looking probably at the wrong location or your file manager hides it.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] kaizer hanz:
oohh.. ok.. :D

thx master ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
No, not cryptic at all. Learning stuff from you all the time!

Appreciate the assistance. Gonna check pppd options to see if there's anything to help with that issue.
[HD2 Android Q&A, Help & Troubleshooting and Genera] chn110:
Not sure if this is related. BTW, I believe pppd IPCP negotiation is with the ISP not the modem.

http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg419128.html

Thanks very much for your effort in looking at this!
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
You're right, bad choice of words...
[HD2 Android Q&A, Help & Troubleshooting and Genera] Ironsave:
LeTama,

This thread is like watching a computer science soap opera.

Very interesting indeed. Not a programmer myself; but work in conjunction with some programmers on occasion in Windows XP.

Very different breed; but the concepts (loosely) apply.

Thanks; will keep lurking. :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Oh by the way, thanks for the pointer. I did a bit of reading on this, things are a bit clearer.

I found some interesting stuff around the planet, for instance this:

https://bugzilla.redhat.com/show_bug.cgi?id=467004

This is probably what our problem is.

I have to dig a bit further to see if the patch discussed around this problem is applied in google tree. I think it is, but I couldn't find it yet so I can't verify.

If we have the patch, I will have to verify if I did setup the modem properly with the wrapper when it happens and it's only a network fluke, or if I messed up and need to re-establish the pdp.

Thanks again,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] famewolf:
Since going to v0.4 of the wrapper I've had periods where the phone goes into a "try to connect...act like your connected...drop connection.... repeat" loops....had to reboot the phone a coupe of times to fix this....not sure logs would tell you anything since the wrapper does appear to be reconnecting but I don't ever recall seeing this behavior with the v0.3 wrapper or previous ones....any chance any of your "tentative fix's" would cause this behavior?
[HD2 Android Q&A, Help & Troubleshooting and Genera] chn110:
OK, to add some spice to your drama - I drove across the blind spot (3G and GSM) on my daily commute this morning running WM (Artemis V36), and data did not recover either!! Same symptom. With H stuck and no data from all apps. This is the first time ever encounter this on WM since I had HD2 from the beginning of the year.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi famewolf,

Well, without logs, difficult to tell, but for sure, logs would have tell something. I'm aware of at least two new problems with 0.4, I'll take a look at it soon.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Lol, good to know that wince does have the same problems. HD2 has been known to have 3G issues, I'm not really surprised.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
v 0.5 is out

Hi All,

v0.5 is out, with timing adjustments and a first trial of a "fake" pppd implementation for request_data_call_list.

Awaitings logs while crossing fingers :)

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] MartyLK:
I wonder how possible it is that the data connection problems might have something to do with the Android data signal from the carrier. T-Mobile says they have a data service for WinMo and another for Android. The WinMo service won't work with Android phones. Since these Android builds are being run on a WinMo device with WinMo data service, I wonder if there isn't some kind of cross connection going on that is killing the signal from time to time.
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
Cheers - will try this new wrapper soon. Read up on the pppd bug report threads and decided to try manually specifying the provider dns servers and sticking them in /etc/resolv.conf to see if it helps (so far so good).

Will report on effectiveness of that 1st before trying the new wrapper without using /etc/resolv.conf.
[HD2 Android Q&A, Help & Troubleshooting and Genera] noellenchris:
? I don't think so, I have an android and can change my ip in build.prop to match and it still does the same. I also don't believe that there is 2 diff data signals. Plus users on AT&T have the same issue. But I guess it's still an idea and sometimes that's how answers are found.
[HD2 Android Q&A, Help & Troubleshooting and Genera] supermaster:
will try...
[HD2 Android Q&A, Help & Troubleshooting and Genera] kaka1234:
Could it be soome glitch in the radio rom? Today i had this wired situation, when the data drops, isee a 3g icon with constant on downloading symbol. Then i did a hot reboot, i.e. not going through windows. Supprisingly the 3g connection status remained the same after the reboot. Then i did a cold reboot, after the boot thwe connection is back up again. So i am guessimg maybe there is something outside android that needs to be fixed.
[HD2 Android Q&A, Help & Troubleshooting and Genera] KillaHurtz:
Been using v.3 since it was available & no data drops at all. Thanx for the continued effort letama & noellenchris.
[HD2 Android Q&A, Help & Troubleshooting and Genera] michaelmab88:
Yeah sorry.. i think i ran the script again overwriting the original logs. I should have double checked before posting.

sorry.. v0.5 is going well.. will post if there are any problems.

thanks
[HD2 Android Q&A, Help & Troubleshooting and Genera] noellenchris:
Been running .5 for several hours. Ran it through it's paces and finally it stuck with data up arrow. Thanks aussiebum for your script.

Toggled data off/on and all is good again. I attached logs about 3min after hang.

EDIT: I wasn't using the hacked kernel....
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
Hmm, used 0.5 wrapper but got 3g stuck up arrow after connection dropped and reconnected. Data/Airplane mode toggle on/off, manual ril daemon restart and hot reboot all only restored data connection but not internet access (ie. would timeout).

Logs attached for the 3g stuck up arrow after reconnection, and also logs for "connected" 3g but no net access (no up or down arrow transmissions).

Wasn't using hacked kernel either as don't have cpu usage problem, and was testing without a /etc/resolv.conf file with dns mappings.

Back onto 0.4 for now.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi Noellenchris,

Yes, tty_prepare_flip_string problem, you are a good candidate for the test kernel :)

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi Aussiebum,

Two things:

First, experimenting with pppd options, no ?

"unrecognized option 'novjuser'", your problem is here, invalid pppd option, it doesn't start.

More, this doesn't look like 0.5:

11-17 14:24:55.715 W/RIL_WRAP( 177): DataCallList

11-17 14:24:55.715 D/RIL_WRAP( 177): call[0]:cid=-1, active=0, type=, apn=, add=

you shouldn't have this with it, except if I messed up with files or code.

Try a killall rild and grab radio logcat, you should see :

W/RIL_WRAP( 4518): ----------- HTC Ril Wrapper v0.5 starting ------------

Verify the version there and let me know,

** edit ** ahhhh, my bad! the problem is on my side, stupid compiler! I will reupload a new version very soon.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Guys,

0.6 is up, sorry about that. I removed 0.5 as 0.6 is basically the same without the bug.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] lanwin:
I tried this with the latest 0.5 version and it still dose not work.

Dose iptables works different with PPP?
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
I don't know, afaik, it doesn't, and all the wrappers should behave the same way regarding this. Without logs and/or details, can't say much more. I would need the full main logcat, not the filtered one along with dmesg.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] ATomCZ:
Fantastic.

Yesterday I was on the Google Developer Day in Praque, so I don't have time to test it, but now i will do this.

UPDATE: Very interesting. Start with your kernel was very weird. HTC Sense start instead of Launcher Pro and first startup wizard run, many app raised exception... How much is this kernel different from Hastarin 8.2? But all apps is still installed.
[HD2 Android Q&A, Help & Troubleshooting and Genera] lanwin:
Thanks for the answer. A few details you can get from the linked post. I will try to generate a logcat.

If i am right you mean to execute this:

logcat -d > /sdcard/pppd.txt

dmesg > /sdcard/pppd_dmesg.txt
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
No idea about Hastarin Kernel, I'm working on git head, lagging a bit behind last updates. I know that Hastarin has underclock/overclock, but except this, no clue. I can't see how the kernel could result in such effects... It seems you lost settings, bad luck maybe? It happens from time to time with SD.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Exactly. I don't know where iptables logs in android, but with a little luck maybe we'll see something.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
Oh yeah, ignore that pppd options error - I realised that pppd always seems to insert the line "user dummy" into options.smd1 after it starts, which means to put pppd options into options.smd I have to have a carriage return to accommodate for the extra line.

On a side note, manually setting the (dns) nameservers for pppd by specifying it in /etc/resolv.conf (and also /system/etc/resolv.conf to keep it persistent across reboots) seems to have done wonders to my connection stability - haven't had a dropout at home yet. Normally get at least one when I attempt to use 3g data at home. This was with the 0.4 wrapper along with the novj pppd option.

Will try 0.6 and see how it works (without using resolv.conf).

Thanks again

EDIT: Another thing - I've written this in another thread/post before, but I got rid of the high cpu usage problem by lowering ro.ril.hsdpa.category (to 6) and ro.ril.hsupa.category (to 2) values in build.prop until I no longer had the problem, and haven't tried setting it back to the build defaults of 8 and 5 respectively since. Not sure how useful this info is but might be useful avenue to investigate?
[HD2 Android Q&A, Help & Troubleshooting and Genera] tfouto:
New Hastarin's kernels dont have underclock/overclock.
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
More logs from 0.6 already :)

After rebooting Android to get the new wrapper to be used, tried to load a webpage in Netfront but disconnected soon after. 3G did manage to reconnect itself, but again no internet access - was just getting timeouts.

Data toggle on/off fixed the connection issue this time though.

This was tested without setting /etc/resolv.conf.

The disconnect-reconnect logs is when connection dropped and reconnected but no net access, the other log is just the timeout behaviour after it was connected - I could see something was happening (3g up arrow was flashing occasionally), but no net access.
[HD2 Android Q&A, Help & Troubleshooting and Genera] ATomCZ:
Weird. I mounted data.img in linux and data folder is OK. I will investigate this.

But your modification should working! I tested play many youtube videos from 3G network with your test kernel and RIL 0.6 and no problem smd_tty use max 1% of CPU, last kernel caused this problem after few minutes.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Good to know! However, could you upload dmesg result ? I want to see what part of the fix is used.
[HD2 Android Q&A, Help & Troubleshooting and Genera] lanwin:
Thanks for looking at it. Attached my logs.

ROM is a fresh phireMOD http://xdaforums.com/showthread.php?t=841740 only with APN set to wap.vodafone.de and the proxy workaround configuration from my thread here http://xdaforums.com/showthread.php?t=836164.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
lanwin,

Unfortunately, both logs don't show much, and I can't really help you on this. The workaround seems a bit experimental, and it's very difficult for me to troubleshoot this kind of thing remotely.

Sorry,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] ATomCZ:
But when I should run dmesg when all still working? For example after few minutes of youtube running?

Btw. Problem with my data is in access rights. From the logcat:

E/ApplicationContext( 1271): Couldn't rename file /data/data/de.ub0r.de.android.callMeterNG/shared_prefs/de.ub0r.de.android.callMeterNG_preferences.xml to backup file /data/data/de.ub0r.de.android.callMeterNG/shared_prefs/de.ub0r.de.android.callMeterNG_preferences.xml.bak
E/FlurryAgent( 1279): java.io.FileNotFoundException: /data/data/com.keyes.screebl.full/files/.flurryagent.5c7f70b (Permission denied)
W/ApplicationContext( 1271): Attempt to read preferences file /data/data/de.ub0r.de.android.callMeterNG/shared_prefs/de.ub0r.de.android.callMeterNG_preferences.xml without permission

E/ApplicationContext( 1271): Couldn't rename file /data/data/de.ub0r.de.android.callMeterNG/shared_prefs/de.ub0r.de.android.callMeterNG_preferences.xml to backup file /data/data/de.ub0r.de.android.callMeterNG/shared_prefs/de.ub0r.de.android.callMeterNG_preferences.xml.bak
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Yes, after few minutes of intense network activity, even if everything works. I should see some details about the workaround there.

Regarding rights, ok, probably nothing to do with kernel then. Android does weird things sometime. I lost my exchange account today, I read that it happens on native devices :)

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] noellenchris:
Thx Letama, I'm running your test kernel now with .6 wrapper. So far it's ok..

I'll report more later, I'm at work and my data connection is terrible here, so if it's gonna fail for me it will happen here.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Aussiebum,

Thanks for the logs.

First, it shows that the interception I wanted to do is working, but the value I send don't please much android:

11-17 21:52:58.823 W/RIL_WRAP( 177): *** Request call list, fake reply ***

11-17 21:52:58.832 D/RILJ ( 284): [0223]< DATA_CALL_LIST [DataCallState: { cid: 1, active: 0, type: IP, apn: yesinternet, address: }]

11-17 21:52:58.832 D/GSM ( 284): GSMDataConnTrack handleMessage { what=11 when=583610 obj=android.os.AsyncResult@472f0150 }

11-17 21:52:58.852 I/GSM ( 284): PDP connection has dropped (active=false case). Reconnecting

I will change active:0 to active:1 and see how it behaves.

Weirdly, your radio log in "pppd disc/rec but no data" is too short, it doesn't cover the same time range as main log. Too bad, I wanted to check something there, but we'll see in next logs ;).

Now, regarding the main topic, loosing connection. I'm a bit out of ideas on why it can't connect afterwards. One thing I noticed and forgot to discuss with you, is this:

sent [PAP AuthReq id=0x1 user="dummy" password=<hidden>]

You don't have any user / password in your apn ?

Next time, could you wait for few more minutes before logging? I have a recovery method that triggers after 3 failed pppd launch, I want to see if it does and if it helps.

Thanks,

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] LondonTownGuy:
There is no username or password here as well for Orange UK APN.

A Beer From Me :)