Serial Port Printer Buffer Overflow

I have a printer (in particular, the Braillo 200 embosser) that connects through a serial port to a computer running Windows 7. I installed a "shared text" printer on Windows and installed it to use the serial port. The parameters in the serial port dialog box (printer properties → ports → config port) correspond to the parameters on the embosser. Despite this, the embosser reports a buffer overflow when trying to squeeze files larger than 2 KB.

My research on this problem points to the problem of establishing a connection, but I tried all the options for establishing a connection (hardware, software, no), and no one solved the problem.

I noticed that using the mode.exe command and setting the parameters there, you can print the command line form (using copy.exe * file_name * com1). But I would rather use Windows to manage printers.

Any suggestions would be greatly appreciated.

+3
source share
1 answer

This can help set recording timeouts using the Win32 SetCommTimeouts function. I don’t know if this will work, but this is the only thing I can think of.

0
source

Source: https://habr.com/ru/post/1780391/


All Articles