-
serial Flowcontrol
Hello
How can I use flowcontrol in my code for serial communication?
My board receive data from other device over serial port (inverted, also no MAX232 device), but I need to control the incomming data then I need time to execute few things after receive the data and in this time the sending device do not send any data, have anyone a idea how can I do that?
Thanks
Regards
Pedro
-
You can use hardware- or software-flowcontrol.
Each flowcontrol you use must be supported by the sending device !
hardware-flowcontrol:
the sender sets RTS in order to ask, if the MODEM (this old things) is ready to receive data. The modems answer by setting CTS. Your part is to lower and higher the CTS-signal.
DTR is set by the Sender (Terminal) and DSR is set by the MODEM after power-on.
software-flowcontrol:
If you are full, to send a Ctrl-S (XOFF) and if you have completed your work, send Ctrl-Q (XON).