Connect the Sinclair QL to a serial printer

Nagging hardware related question? Post here!
Post Reply
Robbizz
ROM Dongle
Posts: 16
Joined: Mon May 29, 2023 11:23 pm

Connect the Sinclair QL to a serial printer

Post by Robbizz »

I'm trying to connect my QL to a serial printer. The printer is an Apple ImageWriter. It is the only serial printer I have and interfacing it with a Macintosh Classic works correctly. I built a serial cable (see photo and pinout), but when I try to print (see program), the printed characters are indecipherable (see photo). Unfortunately I don't know if the speed set by the baud command is correct (I've done several tests but 600 is what makes me print something), and I haven't found anything documented regarding the parameters that must be put after ser2 (ic I found them on a YouTube video about a brother printer).
When creating the serial cable I used a Topic here on this same forum. If anyone can verify the correct connection of the cable pinout (designed to work on ser2) and maybe some suggestions for having a correct print I would be grateful! Thank you

PS: The connections are seen from the front side of the cable connectors.
IMG_2259 - dimensioni grandi.jpeg
IMG_2260 - dimensioni grandi.jpeg
IMG_2257 - dimensioni grandi.jpeg
IMG_2256 - dimensioni grandi.jpeg
IMG_2255 - dimensioni grandi.jpeg


User avatar
tofro
Font of All Knowledge
Posts: 2723
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Connect the Sinclair QL to a serial printer

Post by tofro »

600 Baud is very unlikely.

Apple. ImageWriters default to 9600 Baud if I remember that correctly. So, you should probably try this.


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Robbizz
ROM Dongle
Posts: 16
Joined: Mon May 29, 2023 11:23 pm

Re: Connect the Sinclair QL to a serial printer

Post by Robbizz »

tofro wrote: Tue May 21, 2024 1:50 pm 600 Baud is very unlikely.

Apple. ImageWriters default to 9600 Baud if I remember that correctly. So, you should probably try this.
Fantastic! I thought serial printers didn't reach these speeds. Tonight when I'm in front of my equipment I'll try with that Value.


User avatar
tofro
Font of All Knowledge
Posts: 2723
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Connect the Sinclair QL to a serial printer

Post by tofro »

And as you apparently have the handshake lines connected, you should probably also use them (i.e. leave out the "i" from the device name).

I'd try

Code: Select all

BAUD 9600
OPEN #3,ser2hr
LIST #3


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Robbizz
ROM Dongle
Posts: 16
Joined: Mon May 29, 2023 11:23 pm

Re: Connect the Sinclair QL to a serial printer

Post by Robbizz »

Code: Select all

BAUD 9600
OPEN #3,ser2hr
LIST #3

With 9600 baud it works!
I tried with this code you wrote me, but I get long waits between one printed line and another.
Rather something like this works:

OPEN #3, ser2i

In this case I immediately obtain the printing and the correct wrapping of the printed strings.

Maybe I made a mistake with the Handshake cables?


Post Reply