pombreda / python-escpos

Automatically exported from code.google.com/p/python-escpos
GNU General Public License v3.0
0 stars 0 forks source link

Need more params in printer.Serial() constructor #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Hi cafeteria.ldosalzira,

More serial params must be part of the new release.
Thank you for your contribution to this project.

Original comment by manpaz on 2 Jan 2014 at 8:31