pppd: connect script failed

by ehung1...@gmail.com » Tue, 14 Apr 2009 15:46:00 GMT

Sponsored Links
 Hi everyone
I want to make a connection to internet with modem througth pppd
But I got the error when I made a connection.
The error log is "pppd: connect script failed".
The below is my pppd and chat script file.

/** ppp-on ***
echo "PPP is using account ${MYNAME} to connect to ISP ${ISP} ..."
exec /system/bin/pppd -detach modem crtscts \
        /dev/modem 460800 noipdefault defaultroute \
        noauth name ${MYNAME} connect $DIALER_SCRIPT

/**** pppondialer *****
exec /system/usr/bin/chat -v \
ABORT '\nBUSY\r' \
'' 'ATZ' \
OK ATDT*99***1# \

Could someone give me some suggestion?
Thank in advance


Other Threads

1. More Map Troubles

I have been trying to get a MapActivty to run properly in me app for a few
days now. I have a class that extends MapActivity. I have my map api key
properly defined in the layout xml file.
I have built against the Google APi version 4? (whatever maps to android
1.6) I can compile fine but My app throws a ClassDefNotFound error for my
MyActivity class(the one that extends MapActivity
) I also added the uses-lib tag in the manifest. I have no idea what I'm
missing please help.


2. Sending huge files with HttpsUrlConnection???

I have some Android code that can send files to my webserver using an
HttpsUrlConnection, but when it tries to send larger files I get an
OutOfMemory exception when opening the OutputStream. Can anyone offer
some assistance?

It looks something like this:

httpConn = (HttpsURLConnection) new URL(uri).openConnection();

This is where I try different things. The closes solution has been:
In this case, I don't get the OutOfMemory immediately when opening the
OutputStream, but I see the heap growing as I os.write() and it
eventually runs out.

OutputStream os = httpConn.getOutputStream();
byte[] buffer = new byte[4096];
int len;
while ((len = is.read(buffer)) != -1){
os.write(buffer, 0, len);

Each time I open the .getOutputStream() the contents of the file I am
trying to send is loaded into memory, per the discussion here (http://
bugs.sun.com/bugdatabase/view_bug.do?bug_id=4212479) -- so I go out of

My server supports HTTP 1.1. I've tried the following code.
1. httpConn.setRequestProperty("Transfer-Encoding","chunked");
2. httpConn.setChunkedStreamingMode(1024);
3. httpConn.setRequestProperty("Content-Length", length);
4. httpConn.setFixedLengthStreamingMode(1024)
5. Combo of 1+2.
6. Combo of 3+4

Can anyone offer any assistance?! It seems like no matter what, the
data going to the OutputStream is being buffered. ChunkedStreamMode
seems to just buffer it in pieces, whereas it would otherwise buffer
it all at once. Both go out of memory.

Thanks in advance.

PS> I have similar code for J2ME and memory has not been a problem.
Also, if I try to send two medium sized files in a row, the first one
makes it, but then the heap doesn't seem to compact and the second one


3. Transparent option menu buttons

4. Need rating spica vs hero

5. Join android forums to win a Jabra bt2080 bluetooth

6. Nexus one coming to Sprint

7. ANDROID_ID always null on devices