Unix Technical Forum

monitoring a serial port

This is a discussion on monitoring a serial port within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hi, we are using a (commercial, but custom made) program on our Sun Ultra-5 (sol-v9), which is not supported ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 02:56 PM
Dr. Zimmermann
 
Posts: n/a
Default monitoring a serial port

Hi,

we are using a (commercial, but custom made) program on our Sun Ultra-5
(sol-v9), which is
not supported anymore ...
This program is communicating with a PC over a serial line (no comments
about this, please !).
Since we've run into problems recently, I'd like to debug this
communication.

Do I have a possibility to monitor, what is sent/received over the
serial line. I'm thinking of a program
that works analogue to the ones which can monitor network traffic.
Obviously that program need not
change or influence the serial port settings.

Roger

--
Dr. Roger Zimmermann *** Institute of Physiology, Hamburg
Martinistra/3e 52 D-20246 Hamburg Tel.: /40 42803 5351
-------------------------------- Fax.: /40 42803 4920
R.Zimmermann=at=Uke.Uni-Hamburg.de // roz=at=snafu.de
PGP-ID: Roger Zimmermann
KeyPrint=83 16 D1 82 06 71 16 60 6F 61 95 65 BB CA 02 E0



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 02:56 PM
Logan Shaw
 
Posts: n/a
Default Re: monitoring a serial port

Dr. Zimmermann wrote:
> This program is communicating with a PC over a serial line (no comments
> about this, please !).
> Since we've run into problems recently, I'd like to debug this
> communication.
>
> Do I have a possibility to monitor, what is sent/received over the
> serial line.


You can always try truss. Here is an invocation that might
be suitable for your purposes:

truss -p pid -D -t read,write -r all -w all

If it does I/O on other files at the same time, you may want
to do a regular truss first to determine the file numbers
so you can use "-r" and "-w" to limit the display to just
what's going on the serial port.

Hope that helps.

- Logan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com