Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is it possible to connect 2 windows 7 PCs directly(Direct cable connection) via RS-232 DB9 serial cable?
I tried looping data back to the same PC by shorting pins 2 and 3 with a jumper and used Hyperterminal and PuTTY, and enter characters in the console appeared as expected. But when 2 PCs are connected it fails to display the enter text from other PC.
Has anyone used this rs-232 serial cable on windows 7/8 platform or do I need to use USB to RS-232 for windows 7/8 as modern motherboards do not have serial ports.

Serial cable used and PC ports
Any help is appreciated.

Thanks and Regards,
Sayan
Posted
Comments
[no name] 5-Sep-13 8:04am    
http://b4tea.com/technical/how-to-connect-two-pcs-with-serial-cable/
Sayan Bera 5-Sep-13 8:10am    
Thanks for the reply and I will give it a try.
Does this work for windows 7, because Create a new connection->Connect directly to another computer as mention in http://support.microsoft.com/kb/305621/en-us is removed from windows vista onwards!
Jason Gleim 5-Sep-13 10:25am    
You have to use a terminal program like putty or something similar to communicate over the serial port. Windows supports the ports but doesn't include Hyperterminal in Win 7. So you need to get something that works like Hyperterminal.

You also need a cross-over cable. I'm assuming the link in the first comment noted that but in case it didn't... A cross-over will cross pins 2 & 3 as well as the handshaking pins.

Finally, all serial ports show up as COM ports in Windows. Even if it is a USB to serial port adapter or a Bluetooth to serial port (support the SPP profile). So the device driver for the specific adapter must implement a virtual COM port. Your terminal app will simply need to know the COM port number.
Sayan Bera 6-Sep-13 2:52am    
Yes, Hyperterminal is not present in windows 7, so I have already downloaded it and tested.
Image of Cable and ports used are given in the link above "Serial cable used and PC ports".

I am using a null modem cable, and the cable is okay, as the loopback test mentioned above by shorting the pins 2 and 3 by a jumper is working fine. But when the the cable is connected to both the PC, data is not exchanged.
I suspect connection is not being established between the 2 PC, because when I plug/unplug the cable, nothing changes in the Device Manager->Port(COM and LPT) COM1, COM2, LPT1. No Yellow/red mark on the items.
Is there any kind of specific device driver for this null modem cable for Windows 7?
Jason Gleim 6-Sep-13 9:21am    
Serial connections are dumb connections. Device manager doesn't monitor the state of the serial connection. It isn't like a network link where Windows will tell you if a cable is unplugged. There is no supervisor function on a serial port. So if the hardware is there and the driver loaded, it will show in device manager regardless of whether something is actually hooked to it or not. You will never see any kind of state indicator in Device Manager.

You can, in fact, send things to a serial port that isn't connected to anything at all. Your terminal program will be perfectly happy doing that. State management and error detection are the domain of the application using the port. It is very different than a regular network connection.

When you say that data is not exchanged, what exactly do you mean? How are you trying to exchange data? Are you opening the terminal program on both machines, setting them to the same baud and port settings, then getting nothing on the other machine when you type into the first? If this is the case, make sure you are setting both sides to no flow control. Depending on the cable, it may not be properly passing the hardware handshakes between the machines. If the port is setup to use hardware flow control (the default setting), it will not pass data until it sees the CTS signal from the other side. Configuring the port to no flow control will make it ignore all of that and send the data regardless of the status of the other side.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900