Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 58,354 times

Contents

Related Categories

Com Ports - Technical Information - Handshaking

MSDN

Handshaking

An integral part of managing the receive and transmit buffers is ensuring that the back-and-forth transmission of data is successful — that the speed at which the data is being received does not overflow the buffer limits, for example.

Handshaking refers to the internal communications protocol by which data is transferred from the hardware port to the receive buffer. When a character of data arrives at the serial port, the communications device has to move it into the receive buffer so that your program can read it. A handshaking protocol ensures that data is not lost due to a buffer overrun, where data arrives at the port too quickly for the communications device to move the data into the receive buffer.

You set the Handshaking property to specify the handshaking protocol to be used by your application. By default, this value is set to none (comNone). You can, however, specify one of the other following protocols:

Setting Value Description
comNone 0 No handshaking (Default).
comXOnXOff 1 XOn/XOff handshaking.
comRTS 2 RTS/CTS (Request To Send/Clear To Send) handshaking.
comRTSXOnXOff 3 Both Request To Send and XOn/XOff handshaking.


The protocol that you choose depends upon the device to which you’re connecting. Setting this value to comRTSXOnXOff supports both of the protocols.

In many cases, the communications protocol itself handles handshaking. Therefore, setting this property to something other than comNone may result in conflicts.

Note If you do set this value to either comRTS or comRTSXOnXOff, you need to set the RTSEnabled property to True. Otherwise, you will be able to connect and send, but not receive, data.

Comments

  • Posted by eky on 24 Aug 2004

    Hi U
    Can U show me some page ,apllicate this code by VB . U can send my mail kychinh2002@yahoo.com
    thanks,i need it so much

  • Posted by eky on 24 Aug 2004

    Hi U
    Can U show me some page ,apllicate this code by VB
    thanks,i need it so much

  • Posted by jainsapna on 04 Aug 2004

    i am using mscomm with visual basic. i want to read/write data on serial port rs232. what code will i have to write and what properties i will have to change in mscomm. please help me as soon as possi...

  • tutorial is good indeed

    Posted by vbgeek on 03 Mar 2004

    However, i think you need to perfect it more on a particular section ....

    Do you know what command to issue so that when i call up the receiver's HP, i can get to know whether the receiver phone i...

  • receive binary data from mscomm

    Posted by fycz on 16 Dec 2003

    do your problem has solved?
    I meet the same problem now, visual basic text doesn't give any response to binary input.

    I really need your solution, if you already have it

    thanks