From owner-freebsd-questions Thu May 6 17:44:24 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.vnet.net (smtp2.vnet.net [166.82.1.32]) by hub.freebsd.org (Postfix) with ESMTP id 0D596151BD for ; Thu, 6 May 1999 17:44:21 -0700 (PDT) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp2.vnet.net (8.9.1a/8.9.1) with ESMTP id UAA10508; Thu, 6 May 1999 20:37:56 -0400 (EDT) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.2/8.8.5) with ESMTP id UAA11351; Thu, 6 May 1999 20:36:47 -0400 (EDT) Received: (from rivers@localhost) by lakes.dignus.com (8.9.2/8.6.9) id UAA94481; Thu, 6 May 1999 20:36:47 -0400 (EDT) Date: Thu, 6 May 1999 20:36:47 -0400 (EDT) From: Thomas David Rivers Message-Id: <199905070036.UAA94481@lakes.dignus.com> To: dkelly@HiWAAY.net, freebsd-questions@FreeBSD.ORG Subject: Re: Async Serial Sniffer/Analyzer? In-Reply-To: <199905070005.TAA36385@nospam.hiwaay.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Am in need of a tool to capture and display hex and ASCII a small (100 > to 300 bytes at a time) amount of data off a 300 baud async serial line, > 8 bits, 1 start, 1 stop. Would also be nice if it monitored and logged > transitions of the handshake lines. > > While such a minimal tool as I'm in need of should be easy to write I > don't have a day or so to do it. A pass thru /usr/ports failed to turn > one up. > > FreeBSD, Mac, and even Windows solutions are acceptable. > If it's just a regular 232 line - you could simply cat /dev/cuaXX | tee | od -x The could even be a named pipe in the file system, so that, in another "window" (or vtty) you could also be doing: cat | whatever-program-it-needs-to-go-to And - instead of "od -x", you could use something else that actually understood the bits & did the monitoring and logging you ask for (say, a small C program you wrote yourself.) Part of the the original UNIX philosophy - small tools that you can "hook together" yourself to accomplish big tasks. It's a very powerful problem solving approach. - Just some thoughts - - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message