Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions