Controlling serial communicatation

  • Thread starter Thread starter Amjad
  • Start date Start date
A

Amjad

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.
 
Amjad said:
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/[email protected]>
 
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.
 
Back
Top