Re: Driving a POS printer from Perl

2006-03-14 Thread David Ressler
I took your advice and along the way found that the \r was also essential. This now works: use Win32::SerialPort; $port=new Win32::SerialPort('COM2'); $port-databits(8); $port-baudrate(9600); $port-parity(none); $port-stopbits(1); $port-handshake(none); $port-write(Now is the time\r\nto meet the

Re: Driving a POS printer from Perl

2006-03-13 Thread Foo Ji-Haw
David Ressler wrote: Thanks for the start. I managed to get Win32::SerialPort to wake up the printer but it's printing gibberish. I'm setting it to the same baud rate, etc., as the (functioning) Generic / Text printer that I set up using the Windows Add Printer. Do you have any code snippits

Re: Driving a POS printer from Perl

2006-03-13 Thread Foo Ji-Haw
, 2006 11:32 PM Subject: Re: Driving a POS printer from Perl David Ressler wrote: Thanks for the start. I managed to get Win32::SerialPort to wake up the printer but it's printing gibberish. I'm setting it to the same baud rate, etc., as the (functioning) Generic / Text printer that I set up using

Re: Driving a POS printer from Perl

2006-03-12 Thread Foo Ji-Haw
David Ressler wrote: I have a printer for a POS application (an Epson TM-T88II for the record) that I need to drive from a Perl script running under CGI. The printer runs OK as a Generic/Text printer on Serial Port 1 under Windows 2000 (and I assume Windows XP). Do I need to work through a