Some times you need to access serial port of your PC/LAPTOP to perform some actions like if you want to connect a GSM modem or if you are an Embedded systems programmer then to access program or interface your micro-controllers to your system.
If you are performing these tasks on either Windows or Linux then you will requires some program that can communicate with your hardware and system. In the old days, Windows used to be provided Hyper terminal but now from Windows Vista they don’t provide such a tool, could not understand the reason though .
How ever you can still use Hyper terminal in Windows 7 as well as you can use other freely available serial communication utilities like Putty. Putty is a great and free tool and available for both Windows and Linux platforms. If your system does not have any serial port , you can still use a USB-to-Serial adapter When you buy a USB-to-Serial port adapter you will get a driver for it as well.
This driver makes a virtual serial port in your system. In Windows, serial port named as COM port. If you want to use Hyper terminal than you have to download this file. If you want to use Putty than download this file from here.
Test serial ports by issuing various commands with the help of this nifty app, avoiding the use of complex and expensive software in the process
Now you have to follow below steps to communicate with your device:. Step – 1: Connect your device with your system through RS-232 cable or USB-to-Serial adapter and check whether it’s connected successfully or not.
Step – 2: Open device manager and check for COM ports , it get assigned a COM port or not. See below screen shot. If you are not aware about accessing device manager then follow this post. Step – 3: Note down the “COM port number” as we will require it. Step – 4: Check user manuals or other reference documents related to your hardware for the following information:.
Above properties are critical to make the communication correctly, if you don’t configure these properties properly then you will get either junk data or no data.
Free Serial Port Terminal 188.8.131.520
If you are going to use Hyper terminal than follow Step-5 to Step-9 otherwise follow Step-10 to Step-12. Serial Communication using Hyper Terminal. Step – 5 a Extract the downloaded “hypertermina.rar” file in your system, open the “Hyper terminal” folder and double click on hyper terminal application.
You should see the window like the screen shot given below. Step – 5 b Insert a name for the connection, for ex. Step – 5 c Select your “COM” i.e Serial port.
Step – 5 d You will see the window like below screen shot. Set the values, you noted before remember i.e. According to your device requirements. Step – 5 e Now you are ready to communicate with your device. I am inserting a screen shot which shows a messages received by the device. Step – 6 a By default you wont see the character you type,but if want to see the character you type that is going to received by your device then you have to click on ‘properties’, you will see the window like below:.
Step – 6 b Click on “settings”, you will see the window like below, click on ‘ASCII Setup’. Step-6 c Select “Echo typed character locally”, see screen shot below:. Step – 7 a If you want to receive a file from your device the click on ‘settings’, then select ‘Receive file’ option.
Step – 7 b Choose the receiving protocol whatever your device support, see attached screen shot. Step – 8 If you want to send a file , then select “Send file” option and sending protocol.
Step – 9 Similarly you can capture the text and save it in a file. Serial Communication using Putty. Step – 10 Double click on downloaded ‘Putty.exe’, you will see a window like this:. Step – 11 Select ‘serial’, insert com port and baud rate value and click on ‘Serial’ (Left pan), you will see a window look like this:.
Step – 12 Enter all the setting according your device and then click on open,. Step -13 After clicking on ‘open’, you will see a window like this, now you are ready to communicate with your device.
Putty is much more than a simple serial port communication tool, I will cover more on Putty in my future post. For now, that’s all now you can communicate with your device using serial port, Please like and share if you find it useful. Please sign in to subscribe to this guide. You will be redirected back to this guide once you sign in, and can then subscribe to this guide.
You'll probably need to connect to a serial port now and then. I have two programs I use for connecting to Serial devices, putty and X-CTU.
While not the most powerful serial port software, putty does a good job. It also does telnet and ssh so that's handy as well. You can download putty from http://www.putty.org/ or http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. On the off chance the site is down, here is a mirror. The installation defaults are pretty good. Putty is pretty simple to run, just run the Putty tool.
For serial ports first click Serial in the radio buttons. Then type in the Serial name in Serial line (e.g. COM5) and finally, set the Speed to be whatever speed you like.
Then click Open to open the port. I also sort of like X-CTU which has more low-level tools like the ability to toggle and monitor the flow control lines, view hex codes, see both incoming and outgoing bytes, generate and send packets, etc.
Once installed, you can run just the Serial Console from the Tools menu. Start off by Configuringthe serial connection. Unlike Putty, you'll get a GUI interface to select the serial port, byte encoding, baud rate, and whether you want flow control.
Once configured click the Open Port button. If you type into the console the sent data is shown in blue. Incoming data is shown in red.
Are You Out There?
On the left you see the ASCII values, on the right, HEX bytes. In this case I sent the text abcde to a USB serial cable with nothing connected to the end. I then connect RX and TX pins together so that sent data would come back as received data and typed in ECHO. What is really easy is setting and unsetting the flow control lines, handy if you, for example, want to test that DTR is resetting an Arduino compatible chip, or that the CTS line goes high/low based on the pin settings of a breakout board.