Lazarus

Programming => Packages and Libraries => Topic started by: michoux on July 12, 2020, 11:33:15 am

Title: LAZ Serial close
Post by: michoux on July 12, 2020, 11:33:15 am
Hello,

Continuing with my serial project I face some issue.
Let say I have constant data arriving to com port.
At some point I close the port to not listen to it any more. serial.close
After some while I open the port again with serial.open
At this point I get old data arriving and not actual data.
How can I clear the buffer before I re-open the port?

Even when I close lazarus app and re run it, when I open com port I first get old data and I need some time when incoming data on port and lazarus serial data gets synced ... I am using virtual serial ports for testing perhaps this is an issue


Thanks and Regards Michoux
Title: Re: LAZ Serial close
Post by: michoux on July 12, 2020, 11:54:48 am
I tested now also with realterm and I see the same issue.
Title: Re: LAZ Serial close
Post by: michoux on July 12, 2020, 11:59:32 am
It looks like my virtual serial ports are not ok. I use com0com, I have now try some other virtual com app, and there all looks to be ok, but the app is just a trial version.

TinyPortal © 2005-2018