<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2>Dominic, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2>It looks easy enough.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2>If you can get the RS232 one, all you need to do is take a
Cat5 cable, hack one end off and solder the correct wires to a DB9 or DB25
female connector as appropriate for your PC. Configure the serial port as
it says in the manual. In your application you just open /dev/ttyS0 or
whatever port you're using, write something to it and then close
it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2>The pulse operated one is slightly more complicated (but
not much). You could use one of the outgoing handshake lines on a serial
port to drive a relay or similar to switch 12V from your PSU to the appropriate
pin and wire the sense pins to drive an incoming handshake lines on the serial
port. You open the /dev/ttyS0 (or ttyS1 as appropriate) port and then do an
ioctl() call to set the handshake lines, there is also an ioctl() to read the
handshake lines.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2>I did something like this a few years ago at work on a
Solaris box, I dare say I can have a dig around in the man pages for the exact
ioctl calls to make if you need it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2>Jim</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328560219-12082004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sussex-bounces@mailman.lug.org.uk
[mailto:sussex-bounces@mailman.lug.org.uk] <B>On Behalf Of </B>Dominic
Clay<BR><B>Sent:</B> 12 August 2004 16:30<BR><B>To:</B>
sussex@mailman.lug.org.uk<BR><B>Subject:</B> [Sussex] cash drawer
programming<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am thinking about writing myself an epos system
for my wonderful book shop.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would, of course, like to produce some
oss.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>I am thinking that it would need:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. gui app for the till interface
(QT?)</FONT></DIV>
<DIV><FONT face=Arial size=2>2. database (postgreSQL?)</FONT></DIV>
<DIV><FONT face=Arial size=2>3. middle tier module for controling the cash
drawer (???)</FONT></DIV>
<DIV><FONT face=Arial size=2>4. report producing module for end of day totals
etc (???)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would like to leave the system open enough to
be able to write modular 'plugin' components for such things as 'customer
orders' etc.</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My first requirement will be to be able to
control (open and shut) a cash register type drawer. I have seen
pictures of these things which are like cash registers without the cash
register :). In effect they are just the drawer with the money in
it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I want to be able to open and shut a cash drawer
from my app. </FONT><FONT face=Arial size=2>I have no experience of anything
like this. I assume it would probably communicate via a serial
port? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is there any one with experience of programming
for this kind of equipment on the list???</FONT></DIV>
<DIV><FONT face=Arial size=2>Even better, does anyone know of one of these
cash drawer thingies for sale???</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have seen _one_ of these for sale.
Here is a link to the manual for the one I have seen. Does this
seem usable? Should someone of my beginner status with serial port
programming attempt such things?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Dominic</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>