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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| ||||
| 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 |