By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,681 Members | 1,338 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,681 IT Pros & Developers. It's quick & easy.

Controlling serial communicatation

P: n/a
I want to control the output of all 9 pins of the serial
port on my PC during serial communication sessions. I know
how to transmit and recieve data (Pins 2 and 3) using the
MSComm. But I still don't know how to set the Carrier
Detect pin (pin number 1) to Low or High while I'm
communicating with another computer over the serial port.
I don't want to check its status, but rather to set its
value.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Amjad" <am*********@hotmail.com> scripsit:
I want to control the output of all 9 pins of the serial
port on my PC during serial communication sessions. I know
how to transmit and recieve data (Pins 2 and 3) using the
MSComm. But I still don't know how to set the Carrier
Detect pin (pin number 1) to Low or High while I'm
communicating with another computer over the serial port.
I don't want to check its status, but rather to set its
value.


If you want to use MSComm I would reccomment to ask the question in one
of the VB6 groups (microsoft.public.vb.*). If you want to use an other
library for the communication, have a look at this FAQ:

<http://www.google.de/groups?selm=u4Pp%24vXeDHA.3096%40TK2MSFTNGP11.phx. gbl>

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Hi,

There is no way to do this. Some of these pins are input only.

The only pins available for control are pin4 (DTR), pin 7(RTS), and to a
certain extent pin3 (Tx). That's it. The other pins are for input (or
ground).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.