REQ:linux programming to control serial port's DTR as rs485

Status
Not open for further replies.

ZeRoN

Advanced Member level 4
Joined
Jun 28, 2001
Messages
104
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
1,184
linux rs485

I want to write a program, running under PC. linux (redhat).
to use PC.'s serial port work as RS485, use DTR to control direction.
(use 75176 or MAX485)

Could anyone show me the sample?

Should I need to modify kernel source's serial port driver?

ZeRoN
 

linux dtr

this is the Linux serial how to

showcase.netins.net/web/tool/info/dumbterm.html
 

dtr rs485

The link not said about, automatically control DTR as TX/RX direction.

I mean, I want DTR=ON, send a character, then DTR=OFF automatically for all character when I write to /dev/ttyS*.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…