From owner-freebsd-questions Wed Nov 10 1:58:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tuminfo2.informatik.tu-muenchen.de (tuminfo2.informatik.tu-muenchen.de [131.159.0.81]) by hub.freebsd.org (Postfix) with ESMTP id 9784F1539E for ; Wed, 10 Nov 1999 01:58:15 -0800 (PST) (envelope-from hafner@informatik.tu-muenchen.de) Received: from hprbg5.informatik.tu-muenchen.de ([131.159.0.200] EHLO hprbg5.informatik.tu-muenchen.de ident: root [port 3510]) by tuminfo2.informatik.tu-muenchen.de with ESMTP id <111396-3284>; Wed, 10 Nov 1999 10:58:07 +0000 Received: from hafner@localhost by hprbg5.informatik.tu-muenchen.de id <24242-709>; Wed, 10 Nov 1999 10:57:48 +0100 Subject: Re: FreeBSD and Patient Monitoring !! To: questions@freebsd.org Cc: osiris2002@yahoo.com From: Walter Hafner Date: 10 Nov 1999 10:57:48 +0100 In-Reply-To: osiris2002@yahoo.com's message of "9 Nov 1999 19:31:32 +0100" Message-ID: Lines: 59 X-Mailer: Gnus v5.5/XEmacs 20.3 - "Vatican City" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG osiris2002@yahoo.com (Joss Roots) writes: > Any example of how to do that. > any pointer to URL is highly appreciated. > I am ready to put some muscle, and possibly > sweat :-), in this type of programming. > > any programs out there for interpreting such > ASCII commands. > any programs how to open serial port. > I mean assuming that I wont need to write > a driver, since most probably the data is coming > raw, and very basic out of these serial ports, > so how would I capture this. > Any program headers for setting up the serial > data communication is appreciated. > thanks alot. Hmm ... A colleague and I once re-engineered a protocol. It was even a binary protocol. It was the communication between a surveillance camera and the control panel. We succeeded and as a result, a FreeBSD computer controlled the webcam of Expo2000 for about 2 years. Last month, the cameras were dismantled. :-) What we did: - put a FreeBSD computer between the camera and the panel (serial Lines; ttyd0 and d1) - wrote a simple program, that forwarded all traffic from one line to the other, bidirectoinally. That program also wrote an extensive logfile. To write such a beast, have a look at the termios manpages and read this page: http://www.stokely.com/unix.serial.port.resources/ carefully - then we played with the camera (left, right, zoom, etc.) and analyzed the logfile. - When we thought, we got tha hang of it, we wrote a "panel emulator". This emulator actually worked after only a few redesigns. No voodoo at all. The whole process lasted about 2 weeks, if I remember correctly. Bevore you ask: No, I don't have any code for you. I left that job long ago. Sorry. -Walter -- Dr. Walter Hafner Tel: 089/289-28187 WWW-Beauftragter, TU Muenchen Email: hafner@in.tum.de WWW: http://www.tum.de/~hafner/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message