Does closing COM1 automatically clear the rx buffer?

by (no login)

 

Forgive me if it seems obvious, but this is my first time using RS232 and Qbasic. My program is working as expected so far, but I need a fast way of clearing the receive buffer. I would test it, but I will be away from the project for a couple days. I'm not using any handshaking or any other syncing method. The transmit device will just have long pauses between transmissions. Lost data is not a problem. I just need to clear the rx buffer and receive a new burst from the beginning. I just need confirmation if closing the COM1 and re-opening it will start with an empty buffer.

Thanks,
Lou

Posted on Feb 1, 2012, 9:31 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
Clear the buffer first in a loop. on Feb 1

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement