How to use software flow control properly so as not to overrun the devices input buffer

3 ビュー (過去 30 日間)
Christopher
Christopher 2016 年 6 月 30 日
I am trying to write to a serial port that is communicating with a device that uses software flow control. The device only has an input buffer of 512B, but I often need to transfer large strings to it over serial (~200KB). I've set my serial object's FlowControl property to software, but writing a lot of data overflows the devices input buffer. After transferring all the data, I examine my serial object's input buffer to find many XON and XOFF characters intermingled with other text data sent from the device.
I thought that MATLAB or the OS would handle the flow control at a lower level, but it seems to be ignoring these XOFF characters and continuing to send data. How can I enable software flow control properly?

回答 (0 件)

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by