0

I have been working on a program in Visual C# that will eventually be fed a stream of data to populate a database via serial port.

I have been having problems sending and receiving data via serial port. To eliminate my possible faulty coding, I am using HyperTerminal by Hilgraeve. I am not actually using a serial port at the moment, for testing purposes, this is my setup:

PC1 - USB-to-RS232 Converter - Female-to-Female RS232 Coupling - RS232-to-USB Converter - PC2

(Both converters have male RS232 ends so I had to use the coupling in the middle).

I am using this set up just to make sure I am sending and receiving data correctly before I begin testing serial port communication with my C# application (and I do not have a COM port on any computer I own). Both computers have the driver associated with the USB-to-RS232 converter; the converter shows up in the device manager as a COM port on both PCs. The device manager says they are both working correctly (if that means anything).

As I open HyperTerminal, I connect using COMx (where x is the number of the COM port associated with the converter). For the port settings, I use 9600 Bits per second, 8 data bits, no parity, 1 stop bit, and no flow control. I then connect to the ports by clicking "Call" on the toolbar. I do all this for both PCs. As I type keys on one PC, nothing shows up on the other PC.

Does anyone have a clue as to what could be going on?

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
StayPuff
  • 201
  • 1
  • 6
  • 13
  • Wrong connector, you need a null modem. http://en.wikipedia.org/wiki/Null_modem – Hans Passant Jul 10 '12 at 18:48
  • Thanks! That solved my problem. But I do have another question. Does that make for only a one way communication between the two PCs? As of right now, I can only get one PC to send data; however, the other PC won't sent data back the other way. – StayPuff Jul 10 '12 at 20:44
  • @HansPassant When this solves the question, I suggest you write that as an answer. – hlovdal Apr 07 '13 at 16:31
  • @StayPuff A 0-modem should be bidirectional. – hlovdal Apr 07 '13 at 16:33

1 Answers1

1

Wrong connector, you need a null modem.

(Copied from Hans Passant's comment to allow question to show as answered as per protocol.)

Community
  • 1
  • 1
dsolimano
  • 8,870
  • 3
  • 48
  • 63