MOVING A FILE FROM the QL to an IBM-XT and reverse is really quite simple.
You need three things:
1) a modem on the IBM and the terminal software PROCOMM,
2) a break-out box wired to be a specialised null modem, and
3) some SuperBASIC software.
If you are transfering a Quill document directly, the IBM utility TEXTCON.EXE will helpfully strip the control codes once the file has been transfered to the IBM.
1) You have your IBM and PROCOMM in ASCII mode running at 2400 BAUD, right?
You will be using the ser1 port on the QL which is configured as DCE (Data Communications Equipment) and can use your printer cable.
The IBM will be using the com1 port, configured as DTE (Data Terminal Equipment).
2) Now hook up your break-out box as a null modem. The pin numbers are in raised letters on the connector when viewed end on.
The significant pins for the breaker-box null modem are 1, 2, 3, 7, 20 and 25 coming from the QL.
On the IBM side the significant pins are 2, 3, 4, 5, 6, 7, 8 and 20.
Pins 2, 3, 7 and 20 connect directly, but on the QL side connect pin 1 to pin 7 and pin 25 to pin 20.
(Note than on the QL pins 6, 7 and 8 are connected internally to +12v ground)
On the IBM side pins 4, 5, 6 and 8 must be connected together.
What is happening?
On the QL, using the ser1 port, pin 2 is the TXD input and on the IBM it is the TXD output. Similarly pin 3 is RXD for both computers. Basically the QL is now set to behave as if it were a modem.
Pins 7 on the IBM is the signal ground which connects to both pin 1, the signal ground on the QL, and pin 7, the +12v ground.
Pins 4, 5, 6 and 8 in the IBM are tied together so that the handshaking is permanently enabled. On the QL it is handled from the software.
Pin 20 on both sides is for DTR (Data Terminal Ready). It is also tied to pin 25 on the QL side to be connected to the +12v ground. (I am not sure why.)
3) Now the SuperBASIC software in the QL.
10 Baud 2400
20 D$="MDV1_"
30 DIR D$
40 INPUT "Input ASCII file to
send: ";F$
50 OPEN_IN #5, D$ & F$
55 OPEN_NEW #6, SER1
60 IF EOF (#5) THEN CLOSE #5:
PRINT:PRINT F$;" upload
completed": GOTO 70
62 A$=INKEY$(#5): PRINT A$;:
IF A$=CHR$(15) THEN
A$=CHR$(13)
64 PRINT #6,A$: GOTO 60
70 x%=200:y%=820
80 BEEP 0,x%,y%,10,10,14,1,2
90 FOR a=1 to 1000: NEXT a
100 BEEP
This program will load a file from mdv1_ and transfer it to the ser1 port where it will be received on the IBM PROCOMM terminal software, provided you have set the Download file name in PROCOMM.
It is also possible to ignore the connections for pins 20, and forget the terminal software on the PC side.
In this case it is necessary to ENTER from the keyboard on the QL “copy mdv1_fred to ser1siz” [illegible] on the IBM side ENTER “copy com1 fred”
It is said that you can also transfer from the IBM to the QL by reversing the instructions.
[The above article is taken from information is several sources. 1) a Vancouver, BC, Sinclair newsletter received from Harvey Taylor of Q_LINK fame. 2) an editor’s note in Quanta, Vol 4, #12, January 1988, page 5, and 3) the appendix of Mastering Serial Communications, by Peter W. Gofton, 1986, Sybex Inc., $19.95 at the MIT Coop.]
- Peter Hale
Transcription note: as printed, line 60 reads PRINT F4, an unset variable; it is corrected to F$ (the file name) so the completion message names the file.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.