pombreda / python-escpos

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

Random characters printed #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi everyone,

I'm trying to print some text with an Epson TM-H6000iii on my raspberry pi.
The problem is that I only have a sequence of "Ç?Ç?Ç°" no matters what I 
write.

Here is my code :

#!/usr/bin/env python
from escpos import *

#Bus 001 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port

Epson = printer.Serial("/dev/ttyUSB0",9600,8,2)
Epson.text("Hello world !!!")
Epson.text("0920192")
Epson.cut()

As you can see I'm using a serial adapter.

Original issue reported on code.google.com by marcel.a...@gmail.com on 12 Oct 2013 at 1:33

GoogleCodeExporter commented 9 years ago
Actually I was wrong with my parameters for Serial function :
printer.Serial("/dev/ttyUSB0",38400,8,1)

It now works correctly !

Original comment by marcel.a...@gmail.com on 12 Oct 2013 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by manpaz on 14 Oct 2013 at 6:56