[Q] How to change MTU for 2G networks? - Android Software/Hacking General [Developers Only]

I usually use WiFi or 2G. I noticed some sites don't load fully or stalls forever. So I wanted to change the mtu just like I did in my PC.
With wifi it is easy. "1460" >> sys/class/net/wlan0/mtu and an startup script to change it every time! It worked great.
It is easy to figure out wlan0 is for WiFi, one of them in the "net" directory. The thing is I can't get figure what is the interface for 2G network.
So what is it or is there another way?

Am I asking it in the wrong section?

Related

[help] internet trouble.

This phone is bugging me. ill be home, where I have low/no service, ill try to connect to wifi, but the phone will try to connect to gprs/3g. then sometimes ill have service and it wont connect at all. IE will work but not opera or some other programs. WIFI is searching 24/7 telling when theres a connection. anyone else have this problem?
I want to leave wifi on but only connect to networks registered.
I want if there's no 3g connect to wifi if available.
seems simple to me. possible? maybe i need to change some settings?
There is "no data" but that don't really solve the problem.
I have expereinced the same, especialy if I have low signal then the gprs/3g connections starts up.
It would be neat with an application that gave you a pop up where you had to confirm that you want to connect thru anything other than wifi or bluetooth.
I have the nodata program on my phone and it works great. Search the forum for the program and if you cant find it tell me and I'll attach the .cab
jaszek said:
I have the nodata program on my phone and it works great. Search the forum for the program and if you cant find it tell me and I'll attach the .cab
Click to expand...
Click to collapse
whats the program do
http://letmegooglethatforyou.com/?q=nodata+pocketpc
aonavy said:
whats the program do
Click to expand...
Click to collapse
NoData is probably not what you're looking for. It will allow you to disable traffic through a selected data connection. But it must be enabled / disabled manually. Sounds like you're looking for something that will toggle automatically, giving priority / preference to your WiFi connection when it's available.
There's a program called CommMgrPro that will do what you're looking for. That is, enable and disable connections based on things like cell tower location, detection of WiFi, etc. There's also a forum page for the program here.
A program called Bandswitch (at the same site as CommMgr Pro) will do similar to NoData, except it will let you choose enable / disable based on Time of day presets.
Also here in the forum you can find a program called WifiLocations. It will do similar to the first program above above. If you search the forum there are a few more (some free) programs that will do what you're looking for. Good luck!
My problem with the nodata program is that I can't seem to disable gprs/3g traffic while using wifi. It might be that I have an old version, but I have found many times that even with nodata running in the background with disabled data traffic, it still connects me if I loose my wifi connection.
hotmail said:
NoData is probably not what you're looking for. It will allow you to disable traffic through a selected data connection. But it must be enabled / disabled manually. Sounds like you're looking for something that will toggle automatically, giving priority / preference to your WiFi connection when it's available.
There's a program called CommMgrPro that will do what you're looking for. That is, enable and disable connections based on things like cell tower location, detection of WiFi, etc. There's also a forum page for the program here.
A program called Bandswitch (at the same site as CommMgr Pro) will do similar to NoData, except it will let you choose enable / disable based on Time of day presets.
Also here in the forum you can find a program called WifiLocations. It will do similar to the first program above above. If you search the forum there are a few more (some free) programs that will do what you're looking for. Good luck!
Click to expand...
Click to collapse
thank you very much for the info. I think I sorta fixed it pretty well on my own.Still need the toggle off and on though.
I hard resetted it with out the bloat. then configured my interenet like this:
http://forums.wireless.att.com/cng/board/message?board.id=cingular&message.id=110811
then i went to sounds/notifications in settings, i think, and disabled the wifi notification.
seems to work pretty well.
i take back what i said.it goes in and out. I had 3g service and it said I was connected to media net, but it wouldnt let me get to the net. this phone is a pain when it comes to internet and gps
what do you guys have for internet settings under start>settings>connections>connections>advanced>select network
what setup do i use in the first in the first box and the which setup in the second.
mine 1st media net
2nd my work network (whatever that is)
aonavy said:
i take back what i said.it goes in and out. I had 3g service and it said I was connected to media net, but it wouldnt let me get to the net. this phone is a pain when it comes to internet and gps
Click to expand...
Click to collapse
Edit your MEdiaNet connection settings so your proxy is DISABLED. If it is enabled your WiFi will try to use it too - which is not possible. Unchecking the proxy will have have no discernible impact to your browsing speed when you are using the AT&T data connection.
aonavy said:
what do you guys have for internet settings under start>settings>connections>connections>advanced>select network
what setup do i use in the first in the first box and the which setup in the second.
mine 1st media net
2nd my work network (whatever that is)
Click to expand...
Click to collapse
You can safely set both to MEdiaNet. If you have WiFi enabled and you're connected to your access point it will take precedent over your GPRS (Edge) or UMTS (3G) connection. It is not necessary to disable the AT&T data connection if you are connected and browsing over your WiFi connection. As soon as you turn off or lose your WiFi signal, your phone will go back to using the AT&T data connection.
hotmail said:
Edit your MEdiaNet connection settings so your proxy is DISABLED. If it is enabled your WiFi will try to use it too - which is not possible. Unchecking the proxy will have have no discernible impact to your browsing speed when you are using the AT&T data connection.
You can safely set both to MEdiaNet. If you have WiFi enabled and you're connected to your access point it will take precedent over your GPRS (Edge) or UMTS (3G) connection. It is not necessary to disable the AT&T data connection if you are connected and browsing over your WiFi connection. As soon as you turn off or lose your WiFi signal, your phone will go back to using the AT&T data connection.
Click to expand...
Click to collapse
okay..thanks for the post.
set media net for both and disable proxy and I should be okay correct?
2 questions:
how do I disable the the proxy? delete wap.cingular from the settings? click disable proxy icon?
also i heard if you have one of these disable you cant use your mms?
up up up and away...

[Q] dhcpcd-hooks equivalent for 3G?

I want to have my Android phone do something every time it gets a new IP address. The Linux way would be to set up a local entry in dhcpcd-hooks. This works for wifi, but it seems that connections over the cellular network don't go through these hooks. In fact, I don't see dhcpcd running at all when I'm using a 3G, so it seems that Android is using a different mechanism for network configuration from the cellular network than from wifi.
Any suggestions for how to do this?
(I have a rooted EVO; it requires root to remount /system read-write to modify /system/etc/dhcpcd/dhcpcd-hooks/. I assume that the answer is the same for all networks, 3G, 4G, Sprint, Verizon, etc., but if not, then I'm curious about all of them, though Sprint it obviously most relevant to me.)

[Q] Change 2G/3G switching treshold

Generally my sensation has a decent reception. Most of the times i`m able to get a decent 3G/HSDPA signal without any problems.
The problem is, that I live outside the city and at home my (3G) reception sucks. My Sensation seems to suffer from this poor reception a lot more then my previous Desire-Z.
The 2G connection is fine. When the phone switches to 3G however, I only get one bar and the connection frequently drops so that I have no service at all. When i set the phone to only use 2G, the connection stays stable and since I have wifi, having only GPRS at home is no problem.
I don`t want to leave my phone on 2G only because when i`m not home, the 3G connection is usually fine. I was wondering if there is a way to manually change the 2g/3g switching treshold so the phone will only switch when it has a decent 3G signal. I tried to set GSM Auto (PRL) at the #*#4636#*#* menu, but this doesn`t do the trick.
Thanks
You might have already found an answer to your question, but in case you haven't, you might wanna check out WMLongLife.
It has the ability to automatically disable 3G when you have access to a WiFi network.
Hope this helps
I would be quite interested to see the trick how you are running such a deep system tweak application from Windows Mobile on a Android phone ...
Best regards,
dingolino
But there is a possibility with Tasker
http://forum.xda-developers.com/showthread.php?t=739530
Psycho_dad_rules said:
You might have already found an answer to your question, but in case you haven't, you might wanna check out WMLongLife.
It has the ability to automatically disable 3G when you have access to a WiFi network.
Hope this helps
Click to expand...
Click to collapse
I used tasker to achieve this, when it notices my wifi ssid, it switches off 3g. The down side is that wifi needs to be on ask the time. You could also use "show and switch 2g/3g" from the market, with this APp you can switch with one button or use a schedule.
Guy from reply #2, this is an Android forum not winmo. Winmo it's dead.

[Q] Wi-Fi and 3g connection problems

Hi there!
I've some problems with my G-Nexus 5, as wroten in title,
the Wi-Fi and the 3g connection disconnects me during utilizing it,
if i look on the icons of wi-fi or 3g i can see that i'm not receiving any data and i cant continue to surf in web or by enjoying a game online.
So the question is its a hardware or a software problem, and if another one had the same problem.
So noone had this issue?
Sounds like hardware if this happens both to 3G and WIFI.
How do you fix it? Toggle Wifi? Airplane mode? Restart phone?
After a bit it begins to surf something like 5-10 seconds
I get the same problem on my 3G, it doesn't happen while I'm on WiFi. I have to disable/enable data or airplane mode on/off to get this working again. Also I have noticed that when signal changes from 3G to EDGE and then back to 3G I don't have data working. Need to to the same trick to have that back. It's annoying and you don't know when it working or not unless you check your phone....and lose notification from Facebook Messenger or Whatsapp which i use a lot.
I wrote to google lets see what do they say....
I got realy bored about thia issue.
I would verify that your apn settings are correct. Either call your carrier or maybe google your ("carrier name" apn settings). Also... Settings/Wireless & networks/More/Mobile networks/Preferred network type, is correct. I do know that in my case as far as wifi I get better results (quicker to connect) if the "Advanced " settings for "WiFi frequency band" is set to 2.4 GHz only. Default is Auto. Worth a shot.
wantabe said:
I would verify that your apn settings are correct. Either call your carrier or maybe google your ("carrier name" apn settings). Also... Settings/Wireless & networks/More/Mobile networks/Preferred network type, is correct. I do know that in my case as far as wifi I get better results (quicker to connect) if the "Advanced " settings for "WiFi frequency band" is set to 2.4 GHz only. Default is Auto. Worth a shot.
Click to expand...
Click to collapse
Tried does'nt work, i loos the connection anyway

Wifi Connection Problem

Hello All,
I am trying to connect to my work network with no luck! Prior to the one plus one I had a Nexus 5 that connected with no issues. This is what happens:
1. Choose connect (password is saved)
2.The text under the SSID goes from "connecting" back to "saved" in less than a second. The signal bars show 3 then drop to 1.
I've tried forgetting the network, flashing different ROM, kernel, modem with no luck.
Turned off "Avoid poor network connections" and "Wi-Fi optimization:
With the Wifi analyzer app the connection is steady around -60 to -50 dBm. If I try to connect using the wifi analyzer app it just stays on "Authenticating". I know the password is correct, I've re-entered it multiple times.
The wifi network is using the 2.5 ghz band, channel 1, and WPA authentication.
I haven't tried connecting with a static IP, however I might try this next.
Any ideas, this is driving me nuts! Plus all the iPhones around me get to brag!
Thanks in advanced.
I'm having the same problem, and it also seems to stumble connecting to data networks. I have been toggling airplane mode on/off and it then finds the wifi and data networks. This is annoying as hell, when it should auto find and lock any network it has remembered and passwords are correct.
Does anybody have a fix, or is there a radio that can be flashed to correct this?
Jimmy Rudedog said:
I'm having the same problem, and it also seems to stumble connecting to data networks. I have been toggling airplane mode on/off and it then finds the wifi and data networks. This is annoying as hell, when it should auto find and lock any network it has remembered and passwords are correct.
Does anybody have a fix, or is there a radio that can be flashed to correct this?
Click to expand...
Click to collapse
I'd love to hear any resolutions to this issue as well... I posted this in the oneplus forums recently:
"I am having this problem too with my mom and dad's OPO . But what's funny is that it doesn't happen to my OPO. This sort of rules out any WiFi/router/network issues. Is it possible that certain installed apps on their phones may render the wifi to be unstable (e.g. permission settings for these apps?) Any help from the community is appreciated, thanks... this is an annoying problem for them as it drains out their LTE data!"

Categories

Resources