Date: Fri, 31 Oct 1997 14:14:12 -0500 (EST) From: "User Rdkeys Robert D. Keys" <rdkeys@seedlab1.cropsci.ncsu.edu> To: freebsd-hackers@freebsd.org Cc: rdkeys@seedlab1.cropsci.ncsu.edu (User RDKEYS Robert D. Keys) Subject: Looking for ways to do serial datalogging on FreeBSD Message-ID: <199710311914.OAA07431@seedlab1.cropsci.ncsu.edu>
next in thread | raw e-mail | index | archive | help
If I wanted to use a serial port as a datalogging input port on FreeBSD, from, for example a small outboard box emitting lines of data at 300 baud continuously, what might be good ways to do that? Ideally, I would like to have a script or a small program running that would poll the system clock, poll the port for a line of data at hourly intervals, write that line to a logfile, then sit until the next hour, and repeat, over the course of several weeks or months. Basically, all it is a stripchart temperature recorder. On DOS, where the system currently runs it is a few lines of code in C or Basic or Fortran. I was thinking it would be neat to have my FreeBSD box do that, since it is sitting in the lab across from where the temperatures are being measured, and retire the aging DOS box. The first serial port is the currently the mouse, but the second could be used. It is, at present, disabled in the kernel, but could be re- configured enabled, if necessary. In another direction, could one of the generic data acquisition boards be used to do this, instead. I have heard that that is not always easy to do on a unix box. Someone on freebsd-questions mentioned that analog-digital data acquisition had been tossed about on the hackers list, so I though I would check. Any pointers, resource-persons, etc., are appreciated. I am sure lots of folks have done this type of thing before, right? Thanks Bob Keys rdkeys@seedlab1.cropsci.ncsu.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710311914.OAA07431>