flat assembler
Message board for the users of flat assembler.
Index
> Windows > Serial Communications |
Author |
|
comrade 30 Dec 2005, 05:30
I use WaitCommEvent and threads
|
|||
30 Dec 2005, 05:30 |
|
msmith 30 Dec 2005, 07:14
Hi Comrade,
I am using a thread with status testing (ClearCommError) and looking at cbInQue, which works fine. I would rather use events. Thanks, Mike |
|||
30 Dec 2005, 07:14 |
|
farrier 06 Mar 2013, 17:04
comrade wrote: I use WaitCommEvent and threads comrade, Could you post an example using "WaitCommEvent" I have an app using WaitCommEvent to monitor for incoming serial data, < 100 characters, and it is working. But I've had to use some ugly code to get the notification of the next event. I don't send any serial data, just monitor for incoming. Anything could be helpful. Thanks in advance, farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
06 Mar 2013, 17:04 |
|
comrade 07 Mar 2013, 08:43
It might take me a while to dig it up if it's on a backup CD.
So is your app working or do you need assistance with it? From what you said it sounds like it's working. |
|||
07 Mar 2013, 08:43 |
|
farrier 07 Mar 2013, 14:21
comrade,
My program does work! But, it makes me feel "dirty" to look at everything after the invoke ReadFile line. I start a thread to handle the serial "interrupt" It is triggered, I read the serial port and was not sure what the best way to reestablish the "waiting" state for the serial port. I just kept trying things, until it worked. Now I reset the event, create a new event, and WaitCommEvent, WaitForSingleObject, for the next data. If you can find the code, great. But don't go to too much trouble. Thanks, farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
07 Mar 2013, 14:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.