Hello Teensy forum,
i would like to use the Teensy 4.1 board to send ESC/POS commands to a thermal printer.
I tried the following libraries but without success:
https://github.com/gdsports/USBPrinter_t36
https://github.com/gdsports/ESC_POS_Printer
I downloaded the latest USBHost_t36 library from:
https://github.com/PaulStoffregen/USBHost_t36
The USBPrinter_t36 library is using the stripped down serial.cpp library from USBHost_t36.
Can i map my printer in the USBHost_t36's serial.cpp ?
Where can i find the values for mk_setup parameters ?
The printer is detected with the HIDDeviceInfo example and with the SerialTest example i got the following debug information:
Thank you for any information you can offer.
i would like to use the Teensy 4.1 board to send ESC/POS commands to a thermal printer.
I tried the following libraries but without success:
https://github.com/gdsports/USBPrinter_t36
https://github.com/gdsports/ESC_POS_Printer
I downloaded the latest USBHost_t36 library from:
https://github.com/PaulStoffregen/USBHost_t36
The USBPrinter_t36 library is using the stripped down serial.cpp library from USBHost_t36.
Can i map my printer in the USBHost_t36's serial.cpp ?
Where can i find the values for mk_setup parameters ?
The printer is detected with the HIDDeviceInfo example and with the SerialTest example i got the following debug information:
Code:
port change: 10001003
connect
begin reset
port change: 10001005
port enabled
end recovery
new_Device: 12 Mbit/sec
new_Pipe
enumeration:
enumeration:
enumeration:
Device Descriptor:
12 01 00 02 00 00 00 08 19 05 02 00 00 04 00 02 00 01
VendorID = 0519, ProductID = 0002, Version = 0400
Class/Subclass/Protocol = 0 / 0 / 0
Number of Configurations = 1
enumeration:
enumeration:
Product: TUP592 (ESP-001)
enumeration:
Config data length = 32
enumeration:
Configuration Descriptor:
09 02 20 00 01 01 00 C0 05
NumInterfaces = 1
ConfigurationValue = 1
09 04 00 00 02 FF 00 FF 00
Interface = 0
Number of endpoints = 2
Class/Subclass/Protocol = 255 / 0 / 255
07 05 01 02 40 00 00
Endpoint = 1 OUT
Type = Bulk
Max Size = 64
Polling Interval = 0
07 05 82 02 40 00 00
Endpoint = 2 IN
Type = Bulk
Max Size = 64
Polling Interval = 0
enumeration:
USBSerial(64)claim this=200024C0
vid=519, pid=2, bDeviceClass = 0, bDeviceSubClass = 0, bDeviceProtocol = 0
09 04 00 00 02 FF 00 FF 00 07 05 01 02 40 00 00 07 05 82 02 40 00 00
Descriptor 4 = INTERFACE
USBSerial(64)claim this=200024C0
vid=519, pid=2, bDeviceClass = 0, bDeviceSubClass = 0, bDeviceProtocol = 0
09 04 00 00 02 FF 00 FF 00 07 05 01 02 40 00 00 07 05 82 02 40 00 00
Descriptor 5 = ENDPOINT
Descriptor 5 = ENDPOINT
port change: 1C00100A
disconnect
disconnect_Device:
USBDriver (available_drivers) list: 200024C0
USBDriver (dev->drivers) list: (empty
USBDriver (available_drivers) list: 200024C0
delete_Pipe 20003400
shut down async schedule
Free transfers
Free transfers attached to QH
* 536884544
* Delete Pipe completed
removed Device_t from devlist
disable
Thank you for any information you can offer.