

The RS232 port has a transmitting pin and a receiving pin. When Alice talks, Bob hears with his ears. Both of them have ears and mouths to listen and speak. Serial communication is just like a dialog between two people. RS232 defines the electrical signal levels, and those signals may be converted into other defined standards such as RS485 or RS422, so I am going to describe it with logical signal levels. Now, let’s have a little bit theory about RS232 communications, it is designed to communicate for long distances without using many cables. We can choose a sample problem I think reading data from a barcode scanner may be a right and simple example. Net languages or any other programming languages such as Delphi. As I will talk about the method, you can apply it for. I only want to describe a sample method, and give an example by Visual Basic 6.0.

I am not going to talk about in details of a specific communication protocol, it may be a subject for another series of post.

It is one of the FAQ of industrial automation forums, but it is difficult to find a proper code or advice. In this post series, I would like to talk about receiving data from serial port.
