public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* RS-485 automatic RTS toggle in Linux (on Winbond W83627UHG)
@ 2011-11-29 17:20 Tomas Lastovicka
  2011-11-29 17:57 ` Wolfram Sang
  0 siblings, 1 reply; 8+ messages in thread
From: Tomas Lastovicka @ 2011-11-29 17:20 UTC (permalink / raw)
  To: linux-serial

Hi,

i am trying to use a Linux running embedded PC with built-it RS-485
port as a master to control one slave device. My problem is the usual
one, i can not figure out how to perform an automatic RTS toggle. I.e.
to send data to 485 and after the last byte was sent, quickly switch
to the read mode (but not from my code in the user space). The Linux
kernel is 2.6.32 and an automatic RTS toggle is not natively
supported. Googling this issue around, i found a couple of suggestions
but no solution (except drivers for Atmel and Etrax since kernel
2.6.38).

Does anyone has experience with RS-485 in embedded real-time Linux
PCs? The chip used is Winbond W83627UHG and looking into its
documentation, it is not obvious to me how to handle the RTS toggle
properly. I can write and read to/from 485 but i have to toggle RTS by
hand from my code, which is not what i want to do and it does not
quite work with the slave device either.

Cheers,

Tomas

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

end of thread, other threads:[~2011-12-07 11:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-29 17:20 RS-485 automatic RTS toggle in Linux (on Winbond W83627UHG) Tomas Lastovicka
2011-11-29 17:57 ` Wolfram Sang
2011-11-29 22:13   ` Tomas Lastovicka
2011-11-29 22:20     ` Wolfram Sang
2011-11-29 22:25       ` Tomas Lastovicka
2011-11-29 22:36         ` Wolfram Sang
2011-11-29 23:15           ` Tomas Lastovicka
2011-12-07 11:58             ` Tomas Lastovicka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox