Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-12-2009, 05:25 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 19

Rep: Reputation: 0
Minicom -- want to read data coming in a serial port

Hi everyone.

I have a microchip PIC outputting data via an Rs232 chip....I want to read the data, see the data at the terminal and also log the data to a file.

Is minicom the best option for this?

I know the data is coming out the serial cable as it works with windows hpeerterminal....but when I configure minicom I am not getting any data.

4800 baud 8N1...the PIC/RS232 chip is sending ASCII characters... numbers...

serial port is number 1 and there is only ttyS0 should be the one...have used this port with minicom before so that shouldnt be an issue but how can I test.

Thanks for the help.

Old 04-12-2009, 07:50 PM   #2
Registered: Apr 2009
Posts: 108

Rep: Reputation: 24
Devices can be read just like generic files. So you use cat, head, tail or similar tool to read from those device files, in your case probably /dev/ttyS0. This way you can at least check if the problem is caused by your minicom settings, or that the device is really not triggering any data.

Last edited by Tinkster; 10-30-2010 at 04:34 PM.
Old 04-12-2009, 10:46 PM   #3
LQ Newbie
Registered: Jan 2006
Posts: 19

Original Poster
Rep: Reputation: 0
cat /dev/ttyS0 gets no data either

Thanks maresmasb

tried reading the data with cat /dev/ttyS0 but I get nothing.

Now I know the data is not sent all the time but rather at set intervals.
About every 10 seconds. Maybe I need to find a script to do this? Any other suggestions.

Thanks again to all



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read data coming from serial connected procurve 2524 with python Tanc Programming 3 11-07-2012 07:44 AM
is there any shell command to read and write data from parallel and serial port? baosheng Linux - Hardware 2 01-13-2007 09:35 PM
When to read from the serial port? kad_79 Programming 3 06-15-2006 03:39 PM
no serial data appear at minicom on FC3 powah Linux - Networking 1 04-20-2006 02:19 PM
Why can't I read in data from the serial port using a bash script? tjt Linux - Newbie 1 06-17-2004 01:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration