ts-7000
[Top] [All Lists]

[ts-7000] Re: Inverted polarity RTS/DTR on TS7260 kernel 2.6

To:
Subject: [ts-7000] Re: Inverted polarity RTS/DTR on TS7260 kernel 2.6
From: "r_bergo" <>
Date: Tue, 22 Feb 2011 14:26:14 -0000
Thanks ynezz
of sure, whitout my code is difficult understand.... but the realy question is 
out about my code.
Suppose to want to get up gprs connection using built in commands pon and poff. 
They open the /dev/ttyAM0 as you configure in /etc/..., normally with the 
hardware flow control enabled. This does not work because DTR and RTS have the 
polarity inverted.
Roberto


--- In  Petr ©tetiar <> wrote:
>
> r_bergo <> [2011-02-21 10:54:41]:
>
> > For other questions, now I need to upgrade kernel to 2.6 and I got this
> > unaspected problem:
> >
> > - on /dev/ttyAM0 closed RTS and DTR are at logic level 1 (active)
> > - on /dev/ttyAM0 open RTS and DTR are at logic level 0 (not active)
> >
> > It seems works in inverted mode. Calling fopen() they go down and calling
> > fclose() they works!!!
>
> Without the actual code it's hard to help you, but take a look at HUPCL[1] and
> the source code of the serial driver[2] what it's doing.
>
> Simply said, if the baudrate is set than DTR/RTS is asserted on open(), if
> HUPCL is set, than RTS/DTR is deasserted on close().
>
> 1. http://lxr.linux.no/linux+v2.6.37.1/drivers/tty/tty_port.c#L368
> 2. http://lxr.linux.no/linux+v2.6.37.1/drivers/tty/tty_port.c#L248
>
> -- ynezz
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU