Couldn't set tty to PPP discipline

572 views
Skip to first unread message

Herman

unread,
Oct 21, 2009, 4:44:07 AM10/21/09
to android...@googlegroups.com
Hi all,

I try to enable data connection function through external modem. It can dial but data connection failed. PPPD can't work well. In PPP daemon, it showed "Couldn't set tty to PPP discipline: m". I used 2.6.26 kernel before, but now I used 2.6.29 kernel. In kernel configuration, I have already enabled "Device Drivers->Network device support->PPP support". They have same result in io control "TIOCSETD", it seems that it can't set to data discipline. I use USB to Serial converter interface, below is log of radio and pppd. Does anyone have suggestions? Thanks.

D/AT      (  606): AT> ATD*99***1#
D/AT      (  606): AT< ATD*99***1#
D/AT      (  606): AT< CONNECT 115200
D/RILJ    (  662): [0041]< SETUP_DEFAULT_PDP {1, ppp0}
D/GSM     (  662): [PdpConnection] PDP setup on cid = 1
I/pppd    (  806): Starting pppd
E/pppd    (  807): Couldn't set tty to PPP discipline: m
D/AT      (  606): AT< ~�}#�!}!}!} }<}!}$}%�}"}&} } } } }%}&} } } } }'}"}(}"}#}$�#�U~
D/AT      (  606): AT< OK
I/pppd    (  812): pppd exited with 1
I/pppd    (  816): Starting pppd
E/pppd    (  817): Couldn't set tty to PPP discipline: m
I/pppd    (  820): pppd exited with 1
I/pppd    (  824): Starting pppd
E/pppd    (  825): Couldn't set tty to PPP discipline: m
I/pppd    (  828): pppd exited with 1
I/pppd    (  832): Starting pppd
E/pppd    (  833): Couldn't set tty to PPP discipline: m
I/pppd    (  836): pppd exited with 1


Best regards,
Herman

Eric.Wang

unread,
Nov 4, 2009, 10:06:10 PM11/4/09
to android-porting
confirm your kernel menuconfig and try again
(*) PPP support for async serial ports
(*) PPP support for sync tty ports

Herman

unread,
Nov 6, 2009, 3:36:29 AM11/6/09
to android...@googlegroups.com
Hi Eric,

I have already chosen that. But it has the same result.

Br,
Herman

2009/11/5 Eric.Wang <ack...@gmail.com>

tommy tommy

unread,
Nov 6, 2009, 3:42:59 AM11/6/09
to android...@googlegroups.com
it is HW issue ,i guess your modem is under uncorrect state,i met similiar problem a few days ago!

please check you use  AT port or PPP network dial port ,or you need "ATH" after the first time exit to let modem RESET!



2009/11/6 Herman <herman...@gmail.com>

Herman

unread,
Nov 6, 2009, 4:28:55 AM11/6/09
to android...@googlegroups.com
Thanks, Tommy! So after I use "ATD*99***1#" dial command, I must send "ATH" to modem immediately?

2009/11/6 tommy tommy <hongj...@gmail.com>

tommy tommy

unread,
Nov 6, 2009, 8:16:06 PM11/6/09
to android...@googlegroups.com
hi!
you just use pppd or networkmanager ?
pppd haven't "ATH' problem,you should ask modem engineer to ensure AT port or ppp port .
 
and please post your pppd full command line


 
2009/11/6 Herman <herman...@gmail.com>

Herman

unread,
Nov 9, 2009, 4:01:20 AM11/9/09
to android...@googlegroups.com
I use network manager, it can be set to PPP line discipline now. After I use MUXD function. I think the reason of previous is AT control and PPP use the same port. So it caused fail.

2009/11/7 tommy tommy <hongj...@gmail.com>

simon

unread,
Nov 24, 2009, 8:56:24 PM11/24/09
to android-porting
hi, Herman
what's the MUXD function to make you set to PPP line discipline?
I'm working on this.

On 11月9日, 下午5时01分, Herman <hermanmao...@gmail.com> wrote:
> I use network manager, it can be set to PPP line discipline now. After I use
> MUXD function. I think the reason of previous is AT control and PPP use the
> same port. So it caused fail.
>
> 2009/11/7 tommy tommy <hongjiuj...@gmail.com>
>
> > hi!
> > you just use pppd or networkmanager ?
> > pppd haven't "ATH' problem,you should ask modem engineer to ensure AT port
> > or ppp port .
>
> > and please post your pppd full command line
>
> > 2009/11/6 Herman <hermanmao...@gmail.com>
>
> >> Thanks, Tommy! So after I use "ATD*99***1#" dial command, I must send
> >> "ATH" to modem immediately?
>
> >> 2009/11/6 tommy tommy <hongjiuj...@gmail.com>
>
> >>> it is HW issue ,i guess your modem is under uncorrect state,i met
> >>> similiar problem a few days ago!
>
> >>> please check you use AT port or PPP network dial port ,or you need "ATH"
> >>> after the first time exit to let modem RESET!
>
> >>> 2009/11/6 Herman <hermanmao...@gmail.com>
>
> >>>> Hi Eric,
>
> >>>> I have already chosen that. But it has the same result.
>
> >>>> Br,
> >>>> Herman
>
> >>>> 2009/11/5 Eric.Wang <ack0...@gmail.com>
> >>>>> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> >>>>> website:http://groups.google.com/group/android-porting
>
> >>>> --
> >>>> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> >>>> website:http://groups.google.com/group/android-porting
>
> >>> --
> >>> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> >>> website:http://groups.google.com/group/android-porting
>
> >> --
> >> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> >> website:http://groups.google.com/group/android-porting
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

Herman

unread,
Nov 24, 2009, 10:16:58 PM11/24/09
to android...@googlegroups.com
Hi Simon,

I meanI use MUX daemon to create two virtual channels on one real port. So PPP daemon can set one virtual channel to line discipline. MUXD is a multiplexer, you can find source code on Android git.


Herman

2009/11/25 simon <hxws...@gmail.com>
Reply all
Reply to author
Forward
0 new messages