linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Lite5200 from RS232 to RS485
@ 2004-06-14 11:54 saurosalomoni
  2004-06-14 14:47 ` Graham Williams
  0 siblings, 1 reply; 6+ messages in thread
From: saurosalomoni @ 2004-06-14 11:54 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: gwilliams


> I did the same thing with an 860T.  All we needed was
the RTS pin
> (inverted).  We used the standard driver and
everything worked fine.  I did
> do a little ioctl stuff but no driver changes.


The point is that the driver I'm using does not support
ioctl. What I would like to know is how to set RTS
without using ioctl.
I know there is a way, but I couldn't find it yet...


>Here is the hello file I
> started with.   Good luck
>
> -----Original Message-----
> From: owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org] On
Behalf Of
> saurosalomoni
> Sent: Friday, June 11, 2004 6:35 AM
> To: linuxppc-embedded@lists.linuxppc.org
> Cc: iida@ztec.com.br
> Subject: Lite5200 from RS232 to RS485
>
>
> Hello.
>
> I need to switch between RS232 and RS485 in my Lite5200,
>  but I realized it's a little bit more dificult than I
> thought at first...
> Well,  as far as I'm concerned, I can do that just by
> controling the RTS pin of my ttyS0 device to activate
> the 485 module (is it 100% right?).
>
> I began trying to control it with TIOCMGET/TIOCMSET
> ioctl(),  but the driver does not support hardware
> handshake.. (tahnx,  Denk)
> So now I think I'll have to write a small driver that
> uses GPIO to handle the proper PSC register.
>
> MPC5200 Users Manual states that you can set/clear the
> RTS pin with bit 7 of the OutputPort 0 (op0, offset 0x3C).
>
> My questions:
> - Is this information I gathered correct?..
> - Which PSC register I need to use to control ttyS0?
> - If it's easyer to do it by extending an existing
> driver, wich file should I look for?
> - Is there any other way to accomplish that?
>
> Thanks in advance.
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Lite5200 from RS232 to RS485
@ 2004-06-11 13:35 saurosalomoni
  2004-06-14 17:53 ` Steve Kaiser
  0 siblings, 1 reply; 6+ messages in thread
From: saurosalomoni @ 2004-06-11 13:35 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: iida


Hello.

I need to switch between RS232 and RS485 in my Lite5200,
 but I realized it's a little bit more dificult than I
thought at first...
Well,  as far as I'm concerned, I can do that just by
controling the RTS pin of my ttyS0 device to activate
the 485 module (is it 100% right?).

I began trying to control it with TIOCMGET/TIOCMSET
ioctl(),  but the driver does not support hardware
handshake.. (tahnx,  Denk)
So now I think I'll have to write a small driver that
uses GPIO to handle the proper PSC register.

MPC5200 Users Manual states that you can set/clear the
RTS pin with bit 7 of the OutputPort 0 (op0, offset 0x3C).

My questions:
- Is this information I gathered correct?..
- Which PSC register I need to use to control ttyS0?
- If it's easyer to do it by extending an existing
driver, wich file should I look for?
- Is there any other way to accomplish that?

Thanks in advance.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-22 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-14 11:54 Lite5200 from RS232 to RS485 saurosalomoni
2004-06-14 14:47 ` Graham Williams
2004-06-14 15:37   ` Wolfgang Denk
2004-06-22 14:53     ` Sauro Salomoni
  -- strict thread matches above, loose matches on Subject: below --
2004-06-11 13:35 saurosalomoni
2004-06-14 17:53 ` Steve Kaiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).