Click to See Complete Forum and Search --> : Using Serialports


Bjarki
December 14th, 1999, 04:50 AM
Hello People

I am trying to send something trough a serial port, I have tried few methods to send to the port (use Create file and Write file, MsComm in VB and even tried to send with Hiperterminal) and few methods to receive the message (Hiperterminal, CreateFile+ReadFile and MSComm) and nothing has gotten trough.

I have no been able to send anything trough.

I tried another cable that I know that works but no result.

And I tried it on another computer to se if the serial ports on my computer were broken or something wrong with them and no result.

Most of this time I have been trying this I just connected Serialport 1 with Serialport 2 and I thougt mabe that did not work? But I tried it with another computer with out result.

So I am going insain here so any help would be mostly thankfull, or just send me some prosac!

Thanks in advance.

Bjarki

Dr_Michael
December 14th, 1999, 04:56 AM
I have 4 projects that might help you. Post your email if you want to CodeGuru and I'll send them to you...
I have also a little experience with that. But only a little... ;-)

Michael Vlastos
Automation Engineer
Company SouthGate Hellas SA
Development Department
Athens, Greece

Bjarki
December 14th, 1999, 05:00 AM
bjarki@hsc.is

Thank You

MarkRM
December 14th, 1999, 06:38 AM
Firstly, make sure you have the correct cable for the job! If you can't make Hyperterminal work from Com1 to Com2, this is probably the cause.

Unless you are connecting to a modem or printer, which are both DCE (Data Comms Equipment), you almost certainly require a null-modem cable to allow you to link two DTE (Data Terminal Equipment). Otherwise, for example, the transmit pin from Com1 will be connected to the transmit pin of Com2, which cannot work! You need to join Com1 TXD to Com2 RXD, etc.

A basic connection can be made with a simple 3-wire cable using RxD, TxD and ground. If you want to use hardware handshaking (preferred), all wires should be connected.

Get your Hyperterminal link working with this cable, then test you own code, knowing that this is the only thing under test.

See the following websites for pinouts of both 9 and 25 way null modem connections:
http://www.pcconnet.com/serial.htm
http://www.systime.com/technotes/nullmodem.htm


Mark

Eun-ju Kim
July 17th, 2000, 08:43 PM
I fall into the anguish of despair that same to “Bjarki’s Using serial port”.
My email address : fisherej@kebi.com

“Bjarki’s Using serial port”
I am trying to send something trough a serial port, I have tried few methods to send to the port (use Create file and Write file, MsComm in VB and even tried to send with Hiperterminal) and few methods to receive the message (Hiperterminal, CreateFile+ReadFile and MSComm) and nothing has gotten trough.
I have no been able to send anything trough.
I tried another cable that I know that works but no result.
And I tried it on another computer to se if the serial ports on my computer were broken or something wrong with them and no result.
Most of this time I have been trying this I just connected Serialport 1 with Serialport 2 and I thougt mabe that did not work? But I tried it with another computer with out result.


Thanks in advance.