LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 04-12-2009, 04:25 PM   #1
ihopeto
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 one....so 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.

Brian
 
Old 04-12-2009, 06:50 PM   #2
maresmasb
Member
 
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 03:34 PM.
 
Old 04-12-2009, 09:46 PM   #3
ihopeto
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

Brian
 
  


Reply


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 06:44 AM
is there any shell command to read and write data from parallel and serial port? baosheng Linux - Hardware 2 01-13-2007 08:35 PM
When to read from the serial port? kad_79 Programming 3 06-15-2006 02:39 PM
no serial data appear at minicom on FC3 powah Linux - Networking 1 04-20-2006 01:19 PM
Why can't I read in data from the serial port using a bash script? tjt Linux - Newbie 1 06-17-2004 12:21 AM


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

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