We use a device that needs to allow us to disable/enable flow control on the uart on the fly. This normally works fine, but on occasion, the device does not enable flow control and therefore sending data to the uart causes a lockup (stuck in the driver send routines). We would like to wrap this in a timeout and we are wondering if there is a built-in way to do this using MQX. Any ideas?
I'm afraid the UART's hardware does not support flow control activation on the fly; every time the flow control is enabled/disabled, the Tx and Rx pins must be disabled and re-enabled or the module reset for the changes to have effect. This means any time you change the flow control you will lose the connection with the UART counterpart.