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
function.
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 ***
MYNAME=username
echo "PPP is using account ${MYNAME} to connect to ISP ${ISP} ..."
DIALER_SCRIPT=/data/HSDPA/pppondialer
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 '\nNO DIALTONE\r' \
ABORT '\nBUSY\r' \
ABORT '\nNO CARRIER\r' \
ABORT '\nNO ANSWER\r' \
'' 'ATZ' \
OK ATDT*99***1# \
CONNECT ''

Could someone give me some suggestion?
Thank in advance
ehung
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Problem with setting the background color of a listview item

Hi there

When I'm trying to set the background colour of the listitem with, say
position 0 the colour is repeated when I scroll through the listview.

My code is

class CustomAdapter extends SimpleCursorAdapter {


                public CustomAdapter(Activity context, int task_row, Cursor 
tasks2,
                                String[] from, int[] to) {
                        super(context , task_row,tasks2, from, to);

                }

                @Override
                public View getView(int position, View convertView, ViewGroup
parent) {
                        View row = super.getView(position, convertView, parent);

                        if(position ==0)
                        {
                                row.setBackgroundColor(Color.CYAN )     ;
                        }
...

Any suggestions?

Cheers

Alx

--~--~---------~--~----~------------~-------~--~----~

2. Please help: CreateBitmap() is null when full screen is enabled

I am having an issue when trying to save a screen shot of a view to a
file.

I am using the following code to save the bitmap

Java:


Bitmap screenshot;

mView.setDrawingCacheEnabled(true);
screenshot = Bitmap.createBitmap(mView.getDrawingCache());
mView.setDrawingCacheEnabled(false);

try {
       FileOutputStream fos = new FileOutputStream("/sdcard/
test.png");
     screenshot.compress(Bitmap.CompressFormat.PNG, 100, fos);
     fos.close();
} catch (FileNotFoundException e) {
     Log.d("FileNotFoundException: " + e.getMessage());
} catch (IOException e) {
     Log.d("IOException: " + e.getMessage());
}


it works fine unless i put the following in my onCreate() to make sure
I am in full screen mode

Java:

getWindow().setFlags
(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);



when that code is in there I get a NullPointerException at createBitmap
()
does anybody know why this would be happening?
_________________
--
Sunny

--~--~---------~--~----~------------~-------~--~----~

3. subscribe me

4. Install SDK OSx

5. Please help: CreateBitmap() is null when full screen is enabled

6. SQLiteClosable exception with SimpleCursorAdapter and managedQuery when populating ListView

7. How to implement background activities?