yucemahmut / android-on-freerunner

Automatically exported from code.google.com/p/android-on-freerunner
0 stars 0 forks source link

pppd for GPRS is not restarted successfully after airplane mode toggle or wifi connection disconnect #102

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. check for gprs icon in the message area
2.1.1 enable airplane mode ( long press power, select airplane mode )
2.1.2 gprs icon vanish
2.1.3 disable airplane mode ( long press power, select airplane mode )
or
2.2.1 enable wifi
2.2.2 establish wifi connection
2.2.3 gprs icon vanish
2.2.4 disable wifi
3. enter sim pin

What is the expected output? What do you see instead?
gprs icon should show up in the message area again.

What version of the product are you using? On what operating system?
cupcake daily 20100107

Please provide any additional information below.
attached are main and radio log.

main log states the pppd can not be started because of a tcflush error.
only way to recover gprs is to reboot the phone.

wifi is working fine. i would like to accomplish a non disturbing toggle
between gprs and wifi connection. so that at home i can use wifi and when
leaving home i can switch to gprs. by now i can switch to wifi after using
gprs, but have to reboot the phone to get gprs after using wifi.

i would really like to help in debugging. i did set up a repo and am
flashing the system.img using dfu-util.

Original issue reported on code.google.com by stefan-s...@web.de on 8 Jan 2010 at 1:49

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

I think that the pppd must be called by the script inside etc/pppd. Can you do 
it and
try again?

Original comment by michaelt...@gmail.com on 9 Jan 2010 at 10:54

GoogleCodeExporter commented 9 years ago
Can you try this patch?

Original comment by michaelt...@gmail.com on 9 Jan 2010 at 11:02

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

just calling the script from the shell did not work for me

# /etc/ppp/init.gprs-pppd
/etc/ppp/init.gprs-pppd: permission denied

# /system/bin/sh /etc/ppp/init.gprs-pppd
FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:360
/system/xbin/pppd: no device specified and stdin is not a tty

next i will try the patch.

Original comment by stefan-s...@web.de on 9 Jan 2010 at 11:38

GoogleCodeExporter commented 9 years ago
chmod +x 

Original comment by michaelt...@gmail.com on 9 Jan 2010 at 5:57

GoogleCodeExporter commented 9 years ago
# ls -l /etc/ppp
-rw-r--r-- root     root          453 2010-01-07 15:48 init.gprs-pppd
-r-xr-xr-x root     root          279 2010-01-07 15:48 ip-up
# chmod +x /etc/ppp/init.gprs-pppd
Bad mode
# chmod 755 /etc/ppp/init.gprs-pppd
Unable to chmod /etc/ppp/init.gprs-pppd: Read-only file system

the patch works, but the pppd still gets a connection timeout sometimes and is 
not
restarted. i would use the pppd option "persist", but it is not used in
/data/ppp/options.gprs. where do i find the state machine controlling the gprs
connection?

Original comment by stefan-s...@web.de on 9 Jan 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Ok,

you must change the freerunner-ril.c file and add to the function 
static void writePppOptions(int channel, const char *tty_path,
                            const char *username, const char *password)
the persits flag

Michael

Original comment by michaelt...@gmail.com on 10 Jan 2010 at 11:30

GoogleCodeExporter commented 9 years ago

Original comment by hmu...@gmail.com on 24 Jan 2010 at 10:50

GoogleCodeExporter commented 9 years ago
Hi,

can you try this change?

Original comment by michaelt...@gmail.com on 2 Feb 2010 at 3:47

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Still an issue in RC1.

Thx

Original comment by v4mpyr8...@gmail.com on 15 Mar 2010 at 12:24

GoogleCodeExporter commented 9 years ago
What is the ttyname.. I get the same error when running pppd and pppd-ril, 
abybody knows why??

Original comment by jpv...@gmail.com on 27 Apr 2010 at 10:23

GoogleCodeExporter commented 9 years ago
What is the ttyname.. I get the same error when running pppd and pppd-ril, 
abybody knows why??

What does this mean:

# ls -l /etc/ppp/peers/
lrwxrwxrwx root     root              2010-04-27 17:56 pppd-ril.options -> 
/sdcard/pppd-ril.options

Original comment by jpv...@gmail.com on 27 Apr 2010 at 10:26

GoogleCodeExporter commented 9 years ago
Why Do I get:

# ls -l etc/ppp/peers/
-rw-rw-rw- shell    shell         589 2010-04-27 19:55 pppd-ril.options

How can I change the shell to root??

Original comment by jpv...@gmail.com on 29 Apr 2010 at 12:56

GoogleCodeExporter commented 9 years ago
Hi,

Can you post all the steps you took in order to make ppp work on your plateform 
please?

Original comment by ferre.ad...@gmail.com on 1 Jun 2011 at 9:41

GoogleCodeExporter commented 9 years ago
For me the GPRS connection is also very unstable and does almost never work.

init.gta02.rc executes
/system/etc/ppp/init.gprs-pppd debug file /data/ppp/options.gprs
the device is /dev/pts/1 as given in /data/ppp/options.gprs

But just executing this line does not reestablish the GPRS connection.
The only solution is restarting the device several times until it works (for a 
short time)

Original comment by patbue...@gmail.com on 19 Jul 2011 at 10:09