yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] Unconn:
I have had the same experience. It actually did reconnect one after loosing reception. Most of the rest of the times it needed pppd reset. I have not captured any logs yet. I might be able to today.

It does seem to try to connect though. Something I have not noticed before that during 'attempting to reconnect' that the icon will change and may finally settle on H instead of E. This may have to do with what it was doing when it lost reception, but I am sure I have seen it change when trying to reconnect. I will try and watch it better today when I go and test it and capture logs.

As said above, it 'seems' better, but it is not fixed. Not even sure this helps us get closer to the source of the problem...
[HD2 Android Q&A, Help & Troubleshooting and Genera] M..N:
Yup tested the files above and same problems as before so it must be gingerbread related
[HD2 Android Q&A, Help & Troubleshooting and Genera] 2000impreza:
Tested system/bin/pppd from cm 6.1.1(Froyo) in a Gingerbread build, I don't recommend this change to anyone except for testing only. While the data disconnect issue is less, I found the overall stability of the rom decreased. I had strange issues occur which never happened before the change. The issues also went away after I reverted the /system/bin/pppd.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
What were the strange issues ?

Anyway, I think we can conclude that pppd replacement is not good enough. Too bad, it would have been an easy workaround.
[HD2 Android Q&A, Help & Troubleshooting and Genera] drewestate:
During my testing I noticed the same thing, in fact I'm not sure there was any noticeable improvement at all and when I did have data dropouts it was harder to revive the connection with the older file. Generally I can just toggle airplane mode/or toggle the data connection setting and that will revive the data connection but anytime I lost data using the older pppd file I had to do a full reboot.
[HD2 Android Q&A, Help & Troubleshooting and Genera] seadersn:
jep, me² :(
[HD2 Android Q&A, Help & Troubleshooting and Genera] tigrone:
hi there,

I'm sorry if this is not the right place to post my question but after having used the search this seemed the best already exisiting discussion to post.

I am thinking of developing a custom Android build for a hardware platform, and it should be able to make phone calls/sms etc... So after looking around a bit I saw that the Android RIL should be used... Now I was wondering if you guys could help me on a good start : for example where to get info regarding creating a RIL-wrapper of some sorts, especially ebcause you guys obviously ported android to another platform like the HD2.

Thanks in advance, and if you guys think I should be asking somewhere else I'm open to any advice !
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi tigrone,

Well, in your case I believe the best is probably to start from google generic ril source code and adapt it to your specific hardware. It has a basic ril implementation that covers every android function for a generic modem (source code is in hardware/ril/reference-ril/reference-ril.c). phh did also a nice ril implementation for the other phones, but I can't find it yet.

In our case, we do use a wrapper around desire or desire HD binaries as existing binaries from HTC are doing better job than generic ril especially as HTC embedded extensions in their radio.

If your hardware is not htc and if you have modem documentation, binaries won't do good, you have to write your own ril.

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

https://gitorious.org/linux-on-qualcomm-s-msm/android-htc-ril
[HD2 Android Q&A, Help & Troubleshooting and Genera] tigrone:
ouch ! unfortunately tortoisegit doesnt seem to be able to improt that specific repository :( I cant even browse it when selecting "source tree" button :(

Anywhow, I have been looking at the old pdk documentation : -place url here bu I cannot post it cause im a noob here, so have to wait for 8 posts before i can actually post the url, i hope you know what I am talking about !-

And I was wondering in the main picture what parts are the mentioned

- basic ril implementation

- we do use a wrapper

- desire or desire HD binaries

Actually I am still waiting to hear from the hardware-manufacturer to hear what they can supply regarding drivers etc...

Is there any chance I can bug you with private messages when I start development ? ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] seadersn:
just remove 'http://' at beginning of the url to be able to post it; should work. if not, simply add some extra spaces between it.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Ok, let me first explain a bit, maybe it will clarify things:

- All the modem functions are handled by rild that is basically a simple daemon that will get all android api calls and route them to a hardware manufacturer library. This library is in fact doing all the work.

- It basically translate google API into modem commands and handles call establishement, call status, signal, ...

- With native android phones, htc, motorola (...) provide a library that does the job, and as HTC HD2 hardware is close to HTC desire or HTC desire HD, desire HD binary library is working quite well for our hd2 as it is.

- But for network, android phones are usually using rmnet interfaces implemented in radio (=modem). Unfortunately as hd2 has wince roots, native network way is ppp, not rmnet, and rmnet implementation in hd2 radio is buggy as hell.

- This is why we developed a wrapper: it put itself between rild and htc native ril, routes most function calls to htc ril but handles network function calls to establish ppp instead of rmnet.

So, basically, wrapper is hack to keep using HTC binaries while doing ppp.

In your case, existing ril binaries won't do well, except if your hardware is close to a phone manufacturer design. So you have to write your own ril library, using reference source code from google or phh implementation that is a complete ril, not a wrapper, as a guide.

Regarding private, sure, no problem... I'm quite busy and I'm not always available, but I'll try to help if I can.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
try here https://gitorious.org/linux-on-qualcomm-s-msm/android-htc-ril/trees/diamond
[HD2 Android Q&A, Help & Troubleshooting and Genera] tigrone:
well I'm gonna try and use that trich of removing adding some spaces in the url :

h t t p://w w w .kandroid.org/online-pdk/guide/telephony.html

Also thanks for the simple explanation and help till now letama !

That last piece definitely clarified a lot !
[HD2 Android Q&A, Help & Troubleshooting and Genera] jan-willem3:
I am also on CLK using my miui build.I also noticed when you turn off the phone htc_ril wil crash. Maybe we can do something with the changes cedesmith made. But I have no idea if he made them public.
[HD2 Android Q&A, Help & Troubleshooting and Genera] tigrone:
ok, so you have the rild.c file in \hardware\ril\rild which defines your ril daemon... But, for example, in your link to that diamond implementation you gave there is a htcgeneric-ril.c file... But now I was wondering where would that be placed within the "architecture"... Cause u got the android library calls, those go to the rild daemon, this one routes the calls to the underlying manufacturers library, so where is that htcgeneric-ril.c placed in this workflow ?

Thanks in advance !
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
rild.c compiles into rild executable (radio daemon on workflow). rild is google code, hardware independent, it the same code and binary for every hardware. If you look at the code, you'll see it only loads a hardware dependent library (.so, Vendor RIL on workflow) depending on configuration or command line and then route calls directly to the vendor ril .so

Phh code I gave you is a vendor ril designed for HTC diamond phone, it builds a htcgeneric-ril.so, specific diamond modem dialog is implemented in htcgeneric-ril.c. In diamond init.rc file, you'd have a line like this:

service ril-daemon /system/bin/rild -l /system/lib/htcgeneric-ril.so

It tells rild to load the htcgeneric-ril.so and use it to talk to modem.

Hope it clarifies,

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

Well, Cedesmith nearly completely rewrote ril wrapper, it now very different. He made the source available, git url is on first post of the new CLK thread.

I'm not using HD2 anymore and I'm out of time so I can't help much for this.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] cwsmall:
Read what the DEV wants!!!!!!

It's amazing how many people can't follow simple directions. This is what he posted from first thread.

To keep the thread clean, please only report problems and try to avoid unnecessary talking about it.

Don't report problem without logs, it won't help.

This is highly experimental, don't use it if you don't know what you're doing.
[HD2 Android Q&A, Help & Troubleshooting and Genera] elsecreto09:
Yea we need people to post tricks and tips not to post repeated questions over and over about SOD's , etc now the only issue its data and battery life...but i guess thats what keeps this forum alive.
[HD2 Android Q&A, Help & Troubleshooting and Genera] planetkaren:
+1

Works perfectly on Mdeejay FroyoNext Sense 2.7 with radio 2.15.

No problems with rebooting either.

THANKS!:)
[HD2 Android Q&A, Help & Troubleshooting and Genera] k2trill:
Thanx! this got me working :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] euro_e93:
Is data freeze & data drop the same? I'm getting data freeze(stuck at down arrow) but no data drops.......
[HD2 Android Q&A, Help & Troubleshooting and Genera] jose makalolot:
Mine is stock in up arrow.
[HD2 Android Q&A, Help & Troubleshooting and Genera] aussiebum:
Try setting dtm to 0 and adjusting the ro.ril.hsdpa / hsupa.category parameters in build.prop, based on your carrier settings / whatever setting stops the stuck-on-up-arrow issue (see http://xdaforums.com/showpost.php?p=8885538&postcount=22).

Those changes reduced the amount of times I had that issue, AND eliminated the data stuck and need reboot to fix bug.
[HD2 Android Q&A, Help & Troubleshooting and Genera] jose makalolot:
did the editing. I'll be testing this tomorrow since I have low signal inside my house.

Thanks.
[HD2 Android Q&A, Help & Troubleshooting and Genera] K_Hismoom:
Data is stuck on the down arrow and must be manually disabled/enabled to get it working again.

I am using hastarin r8 kernel with radio 2.15.50.14 and have edited build.prop for the correct ro.ril.hsdpa/hsupa parameters.

Attached are the requested logs. One thing you notice is that after the line "11-02 10:54:16.225 W/pppd ( 1290): tcflush failed: Bad file number" it's just stuck there without anything happening.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Smygflik:
Installed it yesterday and still no disconnect, a big improvement! Thanks alot :)

(Using FroyoStone v3.2 with hastarin r8, European HD2)
[HD2 Android Q&A, Help & Troubleshooting and Genera] Cass67:
From your radio log .. this line in particular

11-02 10:53:45.925 D/RILW ( 179): PL: hackSetupData: system(/system/bin/pppd returned 0

I can see you are not using the wrapper LeTama wanted tested ...
[HD2 Android Q&A, Help & Troubleshooting and Genera] turt:
Yep, same config and same result for me :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hey Cass!

Yes, you're right, this is not the right wrapper.

K_Hismoom,

You should check if the adb push went well, I suspect your system is read-only and the push didn't overwrite previous wrapper.

"tcflush failed: Bad file number" error doesn't mean much as it occurs because the smd driver doesn't support flush. It has no impact on deconnections.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] santroph:
I was using the wrapper for more than 24hs with no problem and than suddenly I was having data drops and freezes all over me. The problem didn't stopped even with a hot reboot, only with a hard reboot.

I'm sorry but I don't have the logs for this event, but I have the logs for a second and also strange event when the connections simply dropped completely even disappearing with the H icon in the status bar only to show it again some seconds latter. This had never happen before to me, not in Android and not in WM.

Here are the logs. (will insert latter when in pc, tapatalk doesn't have file attachment)

I'm using Darkstone's latest froyo non sense hd. 3.2 I think with supplied kernel in build.

Greetings, Santroph.

PS. Same thing just happened again, have the logs too, will update latter.
[HD2 Android Q&A, Help & Troubleshooting and Genera] opius:
This wrapper works well for me. I have seen a few data drops but it seems to pick up again by itself without any need to stop/start anything. I guess that is what it should be doing. :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] ax0r:
Just installed this fix was having connection issues on shub with hastarin 7. 7 will let you know how it goes
[HD2 Android Q&A, Help & Troubleshooting and Genera] K_Hismoom:
Damn, you are both right.

The file got overwritten with the one from /sdcard/Android/root/system/lib.

I apologize for the false alarm and will continue testing with the correct ril wrapper.
[HD2 Android Q&A, Help & Troubleshooting and Genera] DJMirage:
Disconnect with Logs

Been running the wrapper for a few days. Today started getting numerous disconnects while streaming Pandora. The wrapper reconnects but is stuck with the up arrow on 3G. Forced to to toggle data to get it working again.

See attached logs...
[HD2 Android Q&A, Help & Troubleshooting and Genera] Cass67:
Again, much like the previous chap, your not running the correct wrapper, the following line from your radio log tells me this ..

PL: hackSetupData: system(/system/bin/pppd returned 0

Please check how you xfer the wrapper to the hd2 and if its done correctly .. maybe you have the same issue as k_hismoom
[HD2 Android Q&A, Help & Troubleshooting and Genera] DJMirage:
I verified it before posting, but I'm going to push again just in case.

EDIT: Repushed the wrapper and have been running strong. So apparently it did not push correctly the first time using root explorer. I pushed via /sdcard/root/system/lib.
[HD2 Android Q&A, Help & Troubleshooting and Genera] bhilgeman:
This fixed my data connection 100% on Shubcraft 2.0 Thanks!
[HD2 Android Q&A, Help & Troubleshooting and Genera] jose makalolot:
i tried today, no data drops since this morning...

I just followed 0 - 6 - 2...

Thanks a lot.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Zunzun:
Been testing this wrapper for the last 24hr, seems to work.

My connection used to drop every time I took the underground to go to work, this morning it was up when I arrived. Thank you very much !
[HD2 Android Q&A, Help & Troubleshooting and Genera] northern247:
Been running on the test wrapper now on g/e/3g/h only had 1 data drop which was recovered from very quickly.

Its looking very good indeed :)

Thanks for all your efforts
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
v 0.3 is out

Hello All,

Thanks for all the testing that has been achieved so far.

I posted an (hopefully) improved 0.3, see first 2 posts.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] domenukk:
Trying now. (First :P)
[HD2 Android Q&A, Help & Troubleshooting and Genera] agentaaron:
Thank you for your efforts...I just installed v.2 last night on a fresh install of PhireMod SkinnyEVO 1.5 and it seems to be working so far. I think I may leave well enough alone for the time being. If I encounter any drops (which I havent yet) I will try v.3

Cheers :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] Life Engineer:
I installed the file V3 now!

After a restart, there is data; i can "feel" that data is faster now!

After 5 min everything is still good!

The weird (that was before and still continue) thing is that the data disconnects if i call someone or if i got called! (using latest radio :confused:)

I'll keep you posted!

Btw pls tell me how to get logs (just to help :) )
[HD2 Android Q&A, Help & Troubleshooting and Genera] domenukk:
Are you on 2G network?

Its not possible to be connected to Edge or gprs while calling. :p

It's supposed to be like that.

If you are on 3g or hsdpa, there seems to be something wrong, though
[HD2 Android Q&A, Help & Troubleshooting and Genera] hendr1k:
Weird I am stick at htc logo after change the wrapper. Di I nees to edit init.rc?

-------------------------------------

Sent via the XDA Tapatalk App
[HD2 Android Q&A, Help & Troubleshooting and Genera] Life Engineer:
:eek: hehehehe :rolleyes:

Yeah i'm on 2G! Thanks for telling me that bro; it's a kind of surprise for me that i don't know that yet!!!
[HD2 Android Q&A, Help & Troubleshooting and Genera] sotong:
Hendrik, I presume u are upgrading from v2? I too was stuck at HTC logo after i changed to v3. Try removing the "nand_boot=0" from your startup.txt if you have it. I removed it and now managed to boot.
[HD2 Android Q&A, Help & Troubleshooting and Genera] MartyLK:
Getting some data dropouts and temporary freezes on Miui build with Hastarin R8.

Don't know anything about the error logs so I can't provide them.
[HD2 Android Q&A, Help & Troubleshooting and Genera] eessel:
as am I...same ROM. with both v2 and v3. maybe it doesn't really work that well because that build doesn't necessarily have a root folder. I might be totally wrong, but yeah..lol
[HD2 Android Q&A, Help & Troubleshooting and Genera] hendr1k:
Ok its working now after I removed nand option thank you.

Gonna see if data working normal with this new wrapper

-------------------------------------

Sent via the XDA Tapatalk App
[HD2 Android Q&A, Help & Troubleshooting and Genera] cmylxgo:
This is looking very promissing. I just did some prelim testing and data was able to restore itself on its own. I will need to run it longer to get a better feel how much better it is...but the test I just ran with my ROM I can make PPP freeze with my test enviroment every time...and with your updated wrapper it recovered...right away.

-CMY
[HD2 Android Q&A, Help & Troubleshooting and Genera] cmylxgo:
More testing...data froze...connected USB to pull logs and phone locked up :( will continue more testing.
[HD2 Android Q&A, Help & Troubleshooting and Genera] oedsdemeer:
v0.3 is working great for me. Got no data drops so far. Using the Shubcraft build.
[HD2 Android Q&A, Help & Troubleshooting and Genera] fordfanboi:
What would cause my connection to drop when I open Market - but not the browser. If I reboot, I can browse just fine, but if I try to open the market, the 3G/H logo disappears and it restarts my internet connection. This will go on 3-4 times then it will finally open the market and be fine for a day or so.
[HD2 Android Q&A, Help & Troubleshooting and Genera] tfouto:
logs please...
[HD2 Android Q&A, Help & Troubleshooting and Genera] ronyalam:
does not work for me

does not work
[HD2 Android Q&A, Help & Troubleshooting and Genera] Snowboarddude:
Stable!

Works perfect. Thanks LeTama.

Data used to drop continuesly. Installed the v0.2 version this morning and did not have 1 connection drop since. Even while driving home (1 hour) with navigation and satelite layer on and internet radio. flawless.. :-)

Oh, f.y.i: I'm using mdeejay's NextSense 2.7 on Hastarin R8 and radio 2.12.50.02.
[HD2 Android Q&A, Help & Troubleshooting and Genera] mstrk242:
I was never able to get the previous wrapper working, (.2) but this one works for me. Since I do a lot of driving around, I'll use google maps for a bit (it always drops when I switch to certain towers, so it'll be a good test.)
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi Ronyalam,

From your logs, the wrapper isn't installed, it's far more verbose than that. You should recheck the installation.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] nipuna:
So far -- only a few hours, things work great -- no drops... :) Reboots fine...

wrapper v0.3 on Mdeejay eVo Sense v. 2.3 with Hastarian 8
[HD2 Android Q&A, Help & Troubleshooting and Genera] santroph:
I have used the wrapper v2 for 2 days and besides being better than the original I still have a lot of problems as reported earlier. But with v3 now, even if its for less than 4 hs the v3 is way more stable and faster than v2 IMHO.
[HD2 Android Q&A, Help & Troubleshooting and Genera] anush.isaac:
Works extremely well, I never had an improvement from the old wrapper fix from Sep 23 i guess but didn't try v.2 but .3 is so damn good.. My 3G connection is sooo stable... The download speed seems slightly low(not even noticeable) but the reliability is soo good...

Using mattc 1.8 + Hastarin's r8..

Can I leave the Wrapper in my build?? I know its for test purposes, will it affect any daily operations/ battery drain???

Thanks a lot LeTama!!!
[HD2 Android Q&A, Help & Troubleshooting and Genera] cmylxgo:
Logs v0.3

Hope it helped.

-CMY
[HD2 Android Q&A, Help & Troubleshooting and Genera] seaman2k:
+11111 v3 stable and fast

darkstone HD2Froyo V3 hastarin:)
[HD2 Android Q&A, Help & Troubleshooting and Genera] ricey1986:
complete noob question but where do i place the wrapper on my sd card once downloaded?? really want to try this out

Thanks

Ricey
[HD2 Android Q&A, Help & Troubleshooting and Genera] B.Maximenko:
[Android folder on SD card]\root\system\lib

Then boot Android.
[HD2 Android Q&A, Help & Troubleshooting and Genera] northern247:
/hey all, wanting to test v0.3 now, is it just a case of replacing the wrapper and removing nand_boot=0 from the start up text?

what should that line of the start up text be changed to?
[HD2 Android Q&A, Help & Troubleshooting and Genera] agentaaron:
I just deleted the whole line using SUFB and it works fine
[HD2 Android Q&A, Help & Troubleshooting and Genera] MartyLK:
Just replace the wrapper and leave the text as is.
[HD2 Android Q&A, Help & Troubleshooting and Genera] letama:
Hi cmylxgo,

Well, if I'm not mistaken, it seems that your network was quite "jumpy" at that moment and that you lost signal multiple times.

The wrapper seemed to behave well and retried each time to reconnect. I'm afraid I can't do much more to improve this.

LeTama
[HD2 Android Q&A, Help & Troubleshooting and Genera] vdws:
Testing 0.3 since a couple of hours. So far so good.
[HD2 Android Q&A, Help & Troubleshooting and Genera] unheardmyth:
been using for over 36hrs. only disconnect once or twice with data back right away. thumbs up on all the great work and figuring this out.

btw, im on WM blackstone, radio 2.14, android mdeejay froyo hd 3.7 and hastarin r8
[HD2 Android Q&A, Help & Troubleshooting and Genera] sullitf:
Tried 0.2 earlier and couldn't get it to work, it refused to connect after changing the wrapper. I just tried out 0.3 though and so far so good! I'm using BlueTopaz v0.4, and the newest VPN windows mobile rom with 2.15 radio.

I used Astro file manager to change out the 0.2 wrapper and I'm not sure if thats what the problem was, Astro may not utilize the proper permissions to change the lib files. Linda File Manager is what I used when trying out 0.3, though, and it worked great!
[HD2 Android Q&A, Help & Troubleshooting and Genera] bhilgeman:
Installed .3 earlier today and it continually bounced between 3G and H, I reverted back to .2 which seems very stable for me on Shubcraft 2.0 I do see a slight drop in connection speed from stock but its worth the stability of having a good connection.
[HD2 Android Q&A, Help & Troubleshooting and Genera] cmylxgo:
Yep...I think alot of that is the area i was trying to test in had very poor coverage...Kind of the worst case scenerio is what I was shooting for. But...the fact that you see it recover properly is a good sign :) let me know if you would like to try any other tests.

-CMY