PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → [WD18 Android] print through serial port
[WD18 Android] print through serial port
Iniciado por CCC2, out., 29 2013 1:30 PM - 2 respostas
Publicado em outubro, 29 2013 - 1:30 PM
Hi,

Today I manage to print to epson TM-T88iii through serial port using serial server
http://www.atop.com.tw/atop/product/product_detail/data/atop_iapl/en/serial_device_servers_entry_level/se5002/

first I must warn that this is a very expensive tcp to serial convertor . but it work

few setting must be done to serial server
1. Enable VirtualCOM for Serial/IP must uncheck
2. Empty Serial Buffer When TCP Connection is Established must set to YES
3. Data Packet Delimiter Inter-character Time Gap : 2 (default)

on windev mobile make sure
socketchangetransmissionmode("PRT01", socketNoEndTag)

next ,do not join the string to print and esc/pos command . seperate it. for example
socketwrite("PRT01", "TESTING 123")
socketwrite("PRT01", charact(27) + "d"+ charact(1)

// to cut paper
socketwrite("PRT01", charact(27) + "d"+ charact(5)
socketwrite("PRT01", charact(27) + "m"


the serial server handle buffer pretty well . I can print 200 lines with 42 character each lines without any problem

:D king of the lab :D
Publicado em outubro, 29 2013 - 8:13 PM
Hi

Any chance of you replying to the questions on your previous post?

[WM18 Android] print to printserver

Thanks


Ericus
Publicado em setembro, 19 2018 - 6:46 AM
Hi,

Do you maybe have sample code?

Appreciate

Etienne@c-pos.co.za