LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-08-2003, 08:49 AM   #1
sfingerh
LQ Newbie
 
Registered: Jul 2002
Location: CHILE
Distribution: Red Hat 8.0
Posts: 8

Rep: Reputation: 0
I need a Advance Serial Port Monitor/Rcvr/Log


Hi,
I'm working with an external device that is communicating through Serial Port to the PC. In Windows I lose data (few bytes), because my Win98 is "busy" doing something else than receiving.

I know DOS an Win3.1x is OK with this but I want to try it in Linux. Is Linux good in this case? Are there similar problems?

I know the protocol of COM1 (or tty?) and this stuff, but don't know a programm (software in Linux) good for this (maybe there is one good programm for Win too).

I need tor receive and display every byte in Hex format, no lost of data and the posibillity to save the data. This @ 115200bps.

I'm running RH 8.

Thank you

Sebastian Fingerhuth
 
Old 04-08-2003, 09:03 AM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Com1 == /dev/ttyS0 in Linux.

The software you'll want to look at is 'minicom'.

I hope this gets you pointed in the right direction.
 
Old 04-08-2003, 09:11 AM   #3
sfingerh
LQ Newbie
 
Registered: Jul 2002
Location: CHILE
Distribution: Red Hat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you
I tried minicom yesterday, but I'm not sure if minicom receives and showes in Hex format (but I could convert in someway)

Do you know the way Linux handels buffer, relatie receiving and the problemes I talked about in Win?

By
Sebastian
 
Old 04-08-2003, 10:33 AM   #4
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
If you need stuff at that low-level, why not just 'cat /dev/ttyS0' (This works, I just tried it)?

I couldn't tell you about buffer handling or drop rates for serial communication while comparing Linux vs. Windows. Linux is probably better
 
Old 04-08-2003, 11:25 AM   #5
sfingerh
LQ Newbie
 
Registered: Jul 2002
Location: CHILE
Distribution: Red Hat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you,
I didn't know this command and that's what I need: Low Level receiving.
But another question is how to configure speed parity etc.
something like setserial?
And how can I use this cat command? cat /dev/ttySx > name.dat will create a file with all the receiveid data? How can I say to cat, Stop the reception now.

Thanks
sfm
 
Old 04-09-2003, 10:47 AM   #6
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Exactly. setserial can be used to crank of the speed for the serial port. If you use 'cat /dev/ttySx > data.dat &', you can put the command in the background and data will still be written to the log while you use the system. You can view the data file 'live' by using 'tail -f data.dat'. You can stop cat by doing a 'kill `pgrep cat`', assuming no one else is running cat on the system .
 
  


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
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
howto log/monitor port-access? overlord73 Linux - Security 2 04-20-2005 11:22 PM
setting up com port for serial connection to monitor network switch help murf562 Linux - Hardware 1 10-30-2004 09:46 AM
howto monitor i386 serial-port pins? Mike Yates Linux - Hardware 0 06-29-2004 03:05 AM
Log incomming data from a serial port shoekstr Linux - Hardware 6 05-28-2004 10:53 AM


All times are GMT -5. The time now is 12:39 PM.

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