David Christensen wrote: > Ethan Rosenberg wrote: > >Wrote it myself. > > Then you need to learn how to program the serial port using whatever > language you picked.
Your program will basically need to sit in a loop reading data from the point of sale serial port continuously. As data is read your program will need to parse it and respond appropriately. This is quite easy in a Unix like system such as Debian GNU/Linux. In the Unix world everything is a file. (In the Linux world everything is a file system. <grin/>) Since everything is a file your program will need to open the serial port device (/dev/ttyS0 or whatever) for read-write and then interact with it. Open the device. Set the tty parameters. Start the loop. Run forever. Bob
signature.asc
Description: Digital signature