Reading a scale's output via a terminal server using LAT

From: George Gallen <ggallen_at_slackinc.com>
Date: Fri, 14 Dec 2001 12:05:23 -0500

We have an old postal scale that I think sends serially (that I'll have
to play with locally to find out just what is coming out of the D9 plug
on the end. I'm hoping it's ASCII, and not just a bit, that has to be
read bit by bit and combined into a number...but that's not my question).

Once I bind the terminal server's port to a tty process (LATCP), am I
able to read and write to that port? I know I can r/w with a getty process
(a terminal), and we have printers set up (for output only).

Unfortunatly, I don't have the equipment setup right now, so I can't really
test anything.

I would be setting the ttyxx port in /etc/inittab to off, so getty won't
fire
if anything comes through.

What I wanted to do was write a small PERL script that basically would
check the port for input, and if found, append it to a file (or possibly
write
it to a pipe), and as well, check for contents in a file (or another pipe)
and
write it to the port.

Does the above sound pretty much on target?

Right now it will be setup on T64 with a DS700.


NOW for the bigger question:

We will probably be upgrading our system next year (I really hope so, as we
are still on 3.2c), but we will be ditching the terminal servers, since we
don't
need them as we don't have any more serial input/output needs, with the
now exception of the above.

How would we setup (or need) to read/write serially to a network, that can
be read/written remotely? We were originally going to put the DS700 remotely
and link it via LAT with ethernet.

Are there any inexpensive devices that we could setup with sockets instead?
I know the rapidprint 2000 will allow us to hook up a serial and paralell
via a
network, but can it be used to send the data back? because we do have a
spare rapidprint?

Thanks
George

George Gallen
Senior Programmer/Analyst
Accounting/Data Division
ggallen_at_slackinc.com
ph:856.848.1000 Ext 220

SLACK Incorporated - An innovative information, education and management
company
http://www.slackinc.com
Received on Fri Dec 14 2001 - 17:06:33 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT