I have an Apple ImageWriter II that I'm controlling directly over a serial port (Node.JS + serialport, Windows 10).
Generally speaking, it works fine. However, occasionally instead of printing text / responding to commands, it simply prints a hex dump of all the raw bytes that were sent to it:
This only seems to happen after I initially connect the USB -> serial cable to the PC and power on the printer. I.e. when it is printing correctly, I've never seen it spontaneously start doing this.
Power cycling the printer resolves the issue but I'm trying to find a way to ensure this doesn't happen in software.
Does anybody know what's going on here and whether or not there's a command to ensure it doesn't do this? I'm assuming it's going into some kind of debug mode or something, but I'm not sure why and I'm not sure how to get out of it without power cycling the printer. My goal is to guarantee that this never happens.
Connection details, from comments:
It is a USB <-> serial adapter with a male DB-25 connector, to a gender changer, to a null modem adapter, to a male DB-25 <-> mini-din cable, to the printer. The printer is configured for hardware flow control (DSR/DTR as per tech manual) and the PC is configured for hardware flow control. The PC configuration does not make it clear whether DSR/DTR is being used as opposed to RTS/CTS, but I can confirm that the flow control is behaving properly during operation. I have not probed the pins to see what activity happens on initial plug-in. I have not tried configuring the printer and PC for software XON/XOFF flow control.
