The ZX81 on Packet

See all articles from QZX v4 n7
Author(s): Alex Burr (K5XY)
Publication: QZX
Pub Details: QZX v4 n7 (Volume 4, Issue 7)
Date: June 1986
Pages: 4-7

We finally did it! The ZX81 is on packet and working very nicely too.

A packet radio station is made up of many parts and the ZX81 is but one of those parts. Most packet stations consist of a regular transceiver and supporting equipment, a Terminal Node Connector (TNC), and a computer. The computer is usually the most expensive part; but, of course, that is not true when a Sinclair is used. Still, the investment in a packet station is considerable, but most people have most of it already.

I used a 5/8 wavelength antenna, an Azden PCS-3000 two meter transceiver, a Pac-comm TNC, and a ZX81. The Sinclair computer required the use of a cheap TV set and an RS232 interface.

Those readers who want to know more details of what is required for packet communication should look at some of the articles for beginners which have appeared in the literature. A good place to start is some of the recent issues of QZX where Bo has given some of the details. The 1986 issue of the ARRL handbook has a rather historical section on packet radio. Ham Radio has an article in the July 1983 issue, 73 in the September 1983 issue, and CQ in the November 1985 issue.

This packet station was set up on two meters for several reasons. Tuning problems are eliminated (all operation is channelized). Signals can be strong (a 30 db or greater signal to noise ratio is ideal). Activity is concentrated (on 145.01 MHz). Besides, a two meter transceiver and antenna were readily available.

But before a packet station was set up, a TNC had to be acquired. The least expensive way open at the time was to get a Pac-comm kit. In due time it was constructed.

The construction was not a hard job, although it did take a bit of time. The kit instruction book was of Heathkit quality. All the parts went together with no trouble. The calibration procedure was reasonably clear and with the built in hardware and software required no exotic instruments. Soon I had one less roll of solder, a cup full of clipped leads, and a working TNC. If you do get a kit, buy the complete kit, not just the hard to get parts because the definition of hard to get varies with your distance from a good parts distributor.

At this time, the best way to go seems to be to get an assembled MFJ TNC for about $130. It draws more current than the CMOS version of the TNC which was used in this operation. But, because all operation was from a fixed station or from a car, current drain is not an important consideration.

The first tests of the TNC were made with a Tandy Model 100 because it is small, contains a built in terminal program which is very flexible, and was readily available. I was very disappointed when the first tests proved to be a complete failure.

A trouble shooting mode was entered. Signals were traced through the circuitry of the TNC. They all seemed to be getting to the RS232 plug in the right shape. An RS232 test box was borrowed and placed in the line between the TNC and the computer. The LED’s off the test box started blinking just when they were supposed to. Unfortunately they were blinking in the wrong pattern. With this clue, it was soon discovered that one of the push on plugs for the ribbon cable had been put on backwards. With this mistake corrected, everything worked as it should.

The TNC is really well designed. The Tucson Amateur Packet Radio Corporation which created the design did an outstanding job. Their efforts are one of the outstanding success stories of cooperative amateur creativity ever. The design includes calibration circuits and software programs to enable builders to calibrate the modem tones without any fancy equipment. These instructions were followed and I soon had a working TNC.

Now to hook it up to the Azden two meter transceiver. The audio from the transceiver to the TNC was no problem because the Azden has an earphone jack. The audio (and PTT circuit) from the TNC to the Azden was another matter. The Azden has a special 12 pin microphone jack for which nobody makes plugs. Not even the importer of the equipment could provide a plug. So I found an old seven pin tube socket and crushed it with a pair of pliers. I salvaged enough pins to make connections for the three wires (ground, mike input, and PTT) needed. A little insulating tape judiciously inserted between nearby pins prevented shorts (most of the time). Even the audio level from the TNC to the transceiver was at the correct level. The TNC itself required surprisingly little audio from the transceiver. So I was on the air, but not with a Sinclair computer.

The difficulty was two fold. One, the Sinclair computers do not have an RS232 port. Two, they do not work on the standard ASCII characters upon which packet (and most other digital interchange of information) works. At this time A Eckhardt, who makes the Comlink I, came to our rescue by sending us one of his units. The Comlink I remedies all these deficiencies and provides an elementary terminal program as well. A complete review of this essential piece of gear appears elsewhere in this issue.

In short order my ZX81 had its RAM pack removed and the Comlink I inserted in the rear slot in its place. A 25 wire cable (only six wires are used) was run from the Comlink I to the TNC, a TV set was attached to the ZX81, and its power supply was plugged into the wall.

Nothing happened. The inverse K refused to appear in the lower left corner of the TV screen. A little checking revealed that the power supply had gone west (presumably to California to fall into the sea). Another power supply was obtained and the K dutifully showed up.

The Comlink instructions required the following program to be entered.

10 RAND USR 8200

I entered and RAN the program. Immediately the Comlink logo started to scroll across the screen and the Comlink prompt, >, showed up at the bottom. At this point you select the format of the characters to be exchanged between the computer and the TNC. The default format of these two pieces of equipment, while different, are compatible so there is no trouble at this point. (Soon I was in contact with W4GHV and we had fulfilled our goal of getting one of the Sinclair computers on packet. He STILL doesn’t have his T/S RS-232 interface or software finished!)

To test out the configuration, I tried connecting to myself through N5ICC, a nearby strong station. Shortly after I sent the required signals, the welcome words

*** Connected to K5XY via N5ICC [06/28/86 09:35:28]

appeared on the screen and I knew everything was running correctly. There was still a lot to learn about using a ZX81 on packet, however.

First I had to get from the CONVERSE mode of the TNC to the COMMAND mode, so I could terminate the QSO. Usually this is done by sending a CONTROL C (^C) from the computer to the TNC. But the ZX81 does not have a control key. Here is where the Comlink interface performs its second duty (the first was to provide the RS232 port). The Comlink allows a shift 7 to act as a control key so shift 7 C got me back in the COMMAND mode. I later discovered the undocumented fact that a Shift 9 would do just as well and saves a keystroke besides. Also a shift 1 turns out to be the same as a control Z.

Next I connected to WB5CFU, the local Bulletin Board Station (BBS) which had been beaconing the fact that it had some mail for me. I flawlessly picked up a message from K5DI and went on to other things. All this was done without WB5CFU even being near his BBS equipment.

I set the date and time with DA. I placed some text in the CT buffer which sent a message to each station that connected to me. I even put a message in the BT buffer which was sent automatically every half hour announcing the coming radio club meeting. My packet station readily absorbed all this information and kept it for later use.

But it was the TNC with its 16K of RAM which absorbed the information, certainly not the ZX81 with only 1K of RAM. The Comlink I has software provisions for ten canned messages which are easily entered and sent. The messages are ingeniously placed in REM statements added to the one line BASIC program with which it was originally activated. All REM statements between 100 and 199 are associated with the first message, all between 200 and 299 with the second, and so on. To send them all you have to do is push shift 8 and the desired message number.

So I quickly entered five messages and returned to the packet mode. I was greeted with a 4/10 out of memory error statement on the screen. Removing the messages a little bit at a time gradually let me do more things before the 4/10 error message appeared. Because of the ingenious memory saving steps Sinclair built into his little computers, there is not a set character limit on the amount of canned message you can try to store. The amount you can store depends on the amount of screen you want to display and the exact procedures you want the computer to carry out. When I restricted my canned messages to three short ones, I was not able to get the 4/10 out of memory error to appear. The T/S 1000 has twice the internal memory of the ZX81, so it will take twice the canned messages.

Next I tried operating in the multiple connect mode. In this mode you can connect to up to 10 different stations at the same time. I have a hard time carrying on two different conversations simultaneously; but some of the connections could be used for file transfer, BBS operation, or other specialized modes. To operate in this mode the TNC allows you to switch from one connection (called a stream) to another.

This switching is done by sending to the TNC a stream switch character. The usual stream switch character is |, a vertical bar (7CH), character. The Sinclair computers cannot send this character. Fortunately the TNC has a command which permits you to easily change this character.

You want to change it to some punctuation mark which is not used often. The Comlink I provides a choice of such marks. I changed mine to the @ symbol which is obtained by typing shift Y (40H) and appears on your screen as an inverse A. I picked this stream switch character because it would be the least likely to be used in some other way. (The square brackets [] are used in time stamped headers.)

Other features of packet were duely tested and worked with no trouble. Of course, they worked because most of the work is done by the TNC and the Comlink I makes the ZX81 into a terminal just like (almost) any other terminal.

With my Model 100, I would leave my packet station on, set the Model 100 to dump all activity into a file, come back the next day and review everything that had happened on 145.01 MHz while I was away. The ZX81 does not permit this operating convenience. But if I had to be away for a while, all I needed to do was send the TNC a ^S (by keying shifted 7 S) and the TNC would do the remembering. When I got back, a ¬Q (shifted 7 Q) would send a large part of what had gone on to the screen. Of course, the TNC does not have unlimited free memory either so I could not see all the activity for eight hours, but I could see enough to make the effort worth while.

The ZX81 is not the ideal terminal. The biggest limitation is the keyboard. Touch typing is impossible. But the two finger hunt and peck method is used by many anyway and the keyboard is suitable for that method. Occasionally a key would fail to register. But then some keys would send double letters so everything averaged out. The resulting spelling difficulties were ascribed to the operator by those to which I was connected.

In any case precision in QSO’s is rarely necessary, CW and RTTY abbreviations are coming back into favor, and the Comlink I even provides a repeat key capability. The whole combination was very reliable. I have kept everything powered up for days at a time with no failures.

After giving the ZX81 a good workout, I substituted a T/S 1500. Again, at first, the substitution was a disaster. The TV screen was filled only with big wiggly lines. It was then that I discovered that this computer was set to channel two while the first one had been set to channel three. Once the correct channel was in use, it was easy to see that the substitution was a great improvement. The keyboard is better and the 16K of internal RAM removes most of the memory limitations mentioned above. The keyboard is still not perfect. My shift key sometimes would not work and the space key is hard to hit squarely. I kept trying to space by hitting the edge of the case with my thumbs and I had a hard time positioning my right hand far enough to the right but the Comlink I did its interfacing job flawlessly.

Next I substituted an MFJ TNC for my Pac-Comm. The MFJ has a big price advantage over every other TNC with no reduction in the Tucson TNC features. The MFJ came in a well padded box with a thick instruction manual. I just printed out the list of TNC parameters on my Sinclair printer, substituted the MFJ TNC for the Pac-Comm, reset the parameters, and I was back in business just as before. The MFJ is a good TNC.

But this article in not an MFJ review article but an article to urge you to take the easy steps to get your Sinclair computer on packet and join the fun.