Sending more params to printer.Serial() constructor is needed to fully support
every serial printer model, so one could configure parity, stopbits, xonxoff or
dsrdtr according to the printer DIP switch configuration.
For example, my TM-H6000 needs this params to work properly:
self.device = serial.Serial(port=self.devfile, baudrate=self.baudrate,
bytesize=self.bytesize, parity=serial.PARITY_ODD, stopbits=serial.STOPBITS_ONE,
timeout=self.timeout, xonxoff=1, dsrdtr=False)
which is a non standard python-escpos configuration, and can't be set or
modified under run time.
Original issue reported on code.google.com by cafeteri...@gmail.com on 11 Sep 2013 at 8:24
Original issue reported on code.google.com by
cafeteri...@gmail.com
on 11 Sep 2013 at 8:24