?
Solved

Unbuffred serial Communication with Win32

Posted on 1997-10-21
2
Medium Priority
?
211 Views
Last Modified: 2013-12-03
I am trying to set the parity bit to define if it is a data or control byte to rx or tx. What goes wrong is that the buffering makes it impossible. When I change parity it will not affect the bytes because they are in a buffer. How can I do unbuffred serial communication in VC++ 5.0 ?
0
Comment
Question by:kalleballe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
vinniew earned 50 total points
ID: 1407727
You're not asking for much are you?

You need to go lower level than the Win32 API's to do that.

You'll have to access the comm.drv driver directly.  I think that there are examples in the DDK.

V

0
 

Author Comment

by:kalleballe
ID: 1407728
No problem to bypass the problem by accessing the registers directly (by using Tinyport in NT). But I thought this ordernary task was possible using API function calls.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question