473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Pull TxD high in serial communication VC++

Good morning,

after studying the documentation in MS Visual C++ I still do not
understand how to pull up the TxD line (i.e. pin3 in a 9 pin RS232)
in the serial Com-port. In old
times this has been done by output of 64 to the base address+3 of
e.g. Com1. The DCB class does not seem to address this.

I want to provide power by TxD to an a/d converter.

Regards
Christoph Kessler
Aachen, Germany
Jul 22 '05 #1
3 2540
Ch. Kessler wrote:
after studying the documentation in MS Visual C++ I still do not
understand how to pull up the TxD line (i.e. pin3 in a 9 pin RS232)
in the serial Com-port. In old
times this has been done by output of 64 to the base address+3 of
e.g. Com1. The DCB class does not seem to address this.

I want to provide power by TxD to an a/d converter.


I imagine you would be more likely to find help on the
comp.os.ms-windows.programmer.win32 newsgroup.

See http://www.slack.net/~shiva/welcome.txt and the FAQ.

--
Regards,
Buster.
Jul 22 '05 #2
To set the TX line high you can use the SetCommBreak funtion to issue
a BREAK function. The BREAK function sets the TX line high until you
clear the BREAK by calling the ClearCommBreak function.

For more serial I/O tips tricks and free utilities, please visit
www.taltech.com

On Tue, 13 Apr 2004 09:38:24 +0200, "Ch. Kessler"
<ck@eurad.uni-koeln.de> wrote:
Good morning,

after studying the documentation in MS Visual C++ I still do not
understand how to pull up the TxD line (i.e. pin3 in a 9 pin RS232)
in the serial Com-port. In old
times this has been done by output of 64 to the base address+3 of
e.g. Com1. The DCB class does not seem to address this.

I want to provide power by TxD to an a/d converter.

Regards
Christoph Kessler
Aachen, Germany


Jul 22 '05 #3
Thomas Lutz <to*@spammer.com> spoke thus:
To set the TX line high you can use the SetCommBreak funtion to issue
a BREAK function. The BREAK function sets the TX line high until you
clear the BREAK by calling the ClearCommBreak function. For more serial I/O tips tricks and free utilities, please visit


1) Please don't top post.
2) Please don't post off-topic answers.
3) Please don't spam.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jamil | last post by:
I have a device connected through serial port of my desk top PC running Windows 2000. The device is sending some data as serial stream asynchronously. I need to do the follwings: 1) Open the...
1
by: Ch. Kessler | last post by:
Good morning, after studying the documentation in MS Visual C++ I still do not understand how to pull up the TxD line (i.e. pin3 in a 9 pin RS232) in the serial Com-port. In old times this has...
4
by: dalewz | last post by:
Hi, Could sb kindly answer my following questions: Plan: I am trying to find a language to build a GUI to communicate with our device via serial port. Questions: 1. which language (VC++...
1
by: Andreas Horneff | last post by:
Hi @ all, I've got a problem with serial communication in Borland C++ Builder. I've already found a lot of stuff about serial communication in the internet, but it dosen't work. What I want...
3
by: carmen | last post by:
I'm working in an aplication for a Smart Device that need to "talk" with a printer continuosly through the serial port. I'm trying to use the John Hint's sample code "Use P/Invoke to develop a .NET...
6
by: Jeff | last post by:
Hello, Someone can help me about serial port with C++ .NET (Windows forms application). Like setting port, opening it, transmiting, receiving, closing, etc. Thanks very much (for me and my...
1
by: Jo | last post by:
Hy there, i have the problem concerning the serial communication. First i have to send 30 Bytes with 50Baud to a client. After that, the client returns me 3 Bytes with 9600 Baud. The client does...
6
by: Leandro Berti via DotNetMonster.com | last post by:
Hi All, I wrote a code to do serial communication with an equipament. When i use the code outside of threaded class it seens work properly, but when i put inside a class and execute a thread in...
3
by: Manu | last post by:
Hi, i need to know how i can interface to RS232 with VC++.NET (MFC). In the old VC++ 6.0 there is the MSCOMM32 component, i read i can use it but there are some license problems. Is there some low...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.