PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 23 → [WD18 Android] print through serial port
[WD18 Android] print through serial port
Débuté par CCC2, 29 oct. 2013 13:30 - 2 réponses
Posté le 29 octobre 2013 - 13:30
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
Posté le 29 octobre 2013 - 20:13
Hi

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

[WM18 Android] print to printserver

Thanks


Ericus
Posté le 19 septembre 2018 - 06:46
Hi,

Do you maybe have sample code?

Appreciate

Etienne@c-pos.co.za