The reply from TN5250 to a Query Command (see RFC1205) is 2 bytes too long. The error is somewhere between bytes 40-48 (i.e. Device Serial number -> Display Capabilities)
60 bytes are sent when the total for this response should be 58 (0x003A)
Full response is below, highlighting section where 2 extra bytes occur
00 47 12 a0 00 00 04 00 00 00 00 00 88 00 3a d9 70 80 06 00 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 f3 f1 f7 f9 00 f0 f2 02 00
-- Correct to here --
00 00 61 50 00 ff ff ff ff 00 00 00
-- Correct from here --
23 31 00 00 00 00 00 00 00 00 00 00 ff ef
Hi, if you are still experiencing this problem, please open an issue at https://github.com/tn5250/tn5250/issues