📄 readme
字号:
Scope: A Serial Line Analyser/Logger for Linux (and possibly other UNIX systems)==============================================(C) 1999-2005 Matt J Gumbleyhttp://www.gumbley.me.uk/scope.htmlIntroduction============Scope is a general-purpose serial line monitor, capable of recording the trafficon an RS232 cable (if provided with a suitable cable and recording computer).Tested On...------------It was written for: Red Hat Linux 4.2/Sparc, Red Hat Linux 6.0/Sparc, Red Hat Linux 6.2/Intel Red Hat Linux 9/Intel Ubuntu Linux 5.04/Intelalthough it should also compile on other UNIXes. You may need to make changes toasy.c.Licensing---------This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USABuilding and Installing=======================The program now uses GNU autoconf, thanks to Warren Young.To build, use the usual configure invocations; a 'configure --help' will showyou what is supported.Typically, you may wish to place the program in a location other than itsdefault. So, './configure --prefix=/wherever/you/want' is all that's needed.Once configuration is done, type 'make', and then 'make install'.For further information, refer to the file INSTALL, which is ripped verbatimfrom some other package which uses autoconf ;-)(Note to developers: the configure script supplied was generated with autoconf2.13-5 on a Red Hat 6.2/Intel system)Specific configure options for this program-------------------------------------------There are none, yet.How to Use Scope================Basically, scope will monitor /dev/ttyS0 and /dev/ttyS1, with output on standard out, at 19200 bps. Use the -d option to suppress the control/status line data (since that's not 100% working), and use other options to controlspeed, different ports, verbosity etc. scope -h will give a short help file; there is no man page.Capture the output in a file, and use this as input to some of my otherprograms, such as ncpscope.The Special Serial Cable------------------------Scope works best when used in conjunction with a special serial cable. This cable goes inline between the two devices that you want to monitor, andsplits signals on the "main" line into two serial ports which are monitoredsimultaneously to provide a composite view of the current line status. The cable I use connects to a Sun SparcStation 5, which has two serial ports,both D25's - similar to a PC. On a Sparc 10, the two ports (A/B) are housed in asingle socket - the cable is wired as follows:SUN PORT A FEMALE MALE SUN PORT B D25 D25 MALE D25 1 - FG ----- 1 2 - TD ----- 2 ------ SRD 16 3 - RD --------- 3 - RD ----- 3 4 - RTS ---- 4 ----- SCTS 13 5 - CTS -------- 5 - CTS ---- 5 6 - DSR -------- 6 - DSR ---- 6 7 - GND -------- 7 - GND ---- 7 8 - DCD -------- 8 - DCD ---- 8 20 - DTR ---- 20 ----- SDCD 12 22 - RI ----- 22Basically, the first port is used to read most lines, and the second port isused to read TD, RTS and DTR, which are read on the input lines RD, CTS and DCDSo wire the second plug: 2 ----------- 3 4 ----------- 5 20 ----------- 8DISCLAIMER==========Standard disclaimer applies. If you blow up your systemswith this, don't blame me - it works fine (ish) for me.TODO====* Make it work properly on Intel Linux (CRTSCTS undeclared for some reason) - this ioctl option is not used on Intel. Add #define CONFIG_M386 in global.h to make this work.* Use select(), don't poll.* Add pass-through mode (for Charlie Stross) - anything coming in on one port is echoed to another.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -