« Performance Counters Pattern | Main | TAPI & Serial Com, Threading, Random Reverse Engineering Notes »

Serial COM port IO

Serial Comm in dotNET: http://msdn.microsoft.com/msdnmag/issues/02/10/netserialcomm/ (MSDN Oct 2002)

Added as SerialComm project into the Kizmet.IO namespace. Tested with the C# and VB driver apps. Did some name cleanup and review of the code.

NOTE – This library has a limitation on sending bytes. A second send will block until the first completes. As an option, error handling of each send can be sacrificed to avoid blocking.

The article describes the issue and a direction to go to remove it.

Made a PC-to-PC serial cable and tested serial communication between Pell and Kira. The only issue with the wiring is that there’s nothing connected to either pin 1 or pin 4, so the DSR line is left unconnected. Seems to work for my current purpose.

Longer Lead End

Shorter Lead End

Name

Pin

Color

Color

Pin

Name

DCD

1

 

 

1

DCD

RD

2

orange

brown

3

TD

TD

3

brown

black

2

RD

DTR

4

 

yellow

6

DSR

GND

5

red

red

5

GND

DSR

6

yellow

 

4

DTR

RTS

7

green

blue

8

CTS

CTS

8

black

green

7

RTS

 

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)