Date: Wed, 24 May 2000 15:20:36 -0400 From: Chip Marshall <chip@setzer.chocobo.cx> To: freebsd-small@freebsd.org Subject: Flipping RTS on a serial port Message-ID: <20000524152036.A40893@setzer.chocobo.cx>
next in thread | raw e-mail | index | archive | help
Ok, I finally figured out what was wrong with my RS-485 communications problem. As it turns out, when my program opens the serial port and send out some data, the RS-485 port gets stuck into send mode, which causes all the other devices on the port to wait until it stops before sending their responces. Anyway, apparently to correct this behavior I need to force the flip the RTS bit in the handshake control register of the serial port. The problem is that I have no clue how to go about doing this. I tried setting crtscts on the serial port, but this just causes my program to lock when it tries to write (I think the CTS bit never goes high). Anyone know how I can do this either from the command line or in perl? -- Chip Marshall <chip@chocobo.cx> http://www.chocobo.cx/chip/ Finger for PGP GCM/CS d+(-) s+:++ a18>? C++ UB++++$ P+++$ L- E--- W++ N+@ o K- w O M+ V-- PS PE Y? PGP++ t+@ 5 X R>+ tv+() b++>+++ DI++++ D(-) G++ e>++ h!>++ r-- y- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000524152036.A40893>
