XON/XOFF support in FullDuplexSerial?
RobotWorkshop
Posts: 2,307
I haven't seen this mentioned before and wanted to see if anyone has an example of using the FullDuplexSerial or Extended_FDSerial that uses XON/XOFF for handshaking. It is rare that I've had to use that but I have one device that uses it that I want to connect to the Propeller.
Robert
Robert
Comments
If high speeds (> 19.2KBps) are not needed, it should be very easy to write your own routines in Spin using one or two cogs for buffered I/O (either just receive or receive and transmit). Simple_Serial would be a good starting point.
Jonathan
I just need to use 9600, 8, N, 1 so speed isn't an issue.
If anyone happens to have a serial object with XON/XOFF already written, please speak up, otherwise I have some extra coding to do...
Thanks Mike! I'll try that one out.
Jonathan
PS Sorry for the thread hijack
http://en.wikipedia.org/wiki/Software_flow_control
http://www.lammertbies.nl/comm/info/RS-232_flow_control.html
The device doesn't send too much data back so I mainly need to watch for it so I don't overflow it's buffer.
Robert