Re: rs232 -help!
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Thu, 29 Jun 2006 10:27:59 -0400
Robby wrote:
Anyhow, this has been a tough one, and I thank all the fellows who contributed to my rs232 dilema. I don't know if I will run into problems with the code above, however I tell ya, this is the best I can get so far and I figure I should share it with you. Its the least I can do. I don't say that ist the best way of doing this, however, it works!
Glad you have some success. One suggestion: Your code appears to be setting the baud rate etc. *after* you receive a read notification. This makes no sense and is probably causing the "junk" you reported. Set the baud rate etc. right after you open the port, and don't mess with it after communication has begun.
--
Scott McPhillips [VC++ MVP]
.
- References:
- rs232 -help!
- From: Robby
- Re: rs232 -help!
- From: Heinz Ozwirk
- Re: rs232 -help!
- From: Robby
- rs232 -help!
- Prev by Date: Re: VS2005 compiler with /clr gets confused with GetJob
- Next by Date: Trouble getting file owner on large amount of files
- Previous by thread: Re: rs232 -help!
- Next by thread: Serial port communication
- Index(es):