This brings back memories. About 25 years ago I did a cash drawer controller. Back then there were no RS-232 drawers but there were solenoid based drawers.
Anyway, I used a small microswitch mounted in the back of the drawer to bridge two handshake lines so I could sense when the drawer was open. The switch connected DTR to RI or some such thing. To see if it was connected you would set DTR and read RI, then clear DTR and read RI. So long as DTR and RI tracked each other in both states you knew the drawer was open. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lee Jenkins Sent: Monday, July 07, 2008 2:14 PM To: Ararat Synapse Subject: Re: [Synalist] Serial comms with cash drawer. Dave Coventry wrote: > My Bad. > > I ommitted to remove the writeln(ser.sendstring(#7)); > > Still, if anyone can suggest a way to interrogate the Cash Drawer for > it's state? > Dave, its hard to say because each cash drawer manufacturer does it a bit differently and some cash drawers do not allow for interrogating the status of the drawer. Usually, the higher end models support, from what I understand. Again, its been some time since I worked with Serial POS Peripherals and prefer to work with printer driven or keyboard wedge driven devices. Its even more difficult since you don't know the brand of your drawer. Where did you get the cash drawer? I would have suggested you check out OPOS (http://en.wikipedia.org/wiki/OPOS) but last time I checked, I don't think Lazarus supports ActiveX/COM which OPOS is based on. -- Warm Regards, Lee ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
