Blog
Comment
David Ashton
That reminds me of a nice story, which might solve your problem. Guy had a dead ...
http://www.lulu.com/spotlight/poconoarmchairreview
Speaking of fluoro tubes, I'm doing my best to stay away from them. The ones I ...
How to have fun with klunky old terminals
David Ashton
12/14/2010 9:40 AM EST
In the early 1990s I was running my own business putting terminal systems into travel agents in Zimbabwe. They had been offered connections to Air Zimbabwe’s reservation system, which was a time-shared system on a huge mainframe run by British Airways in London. British Airways did this for a lot of small airlines; it enabled them to get Big-Airline functionality at a fraction of the price that it would cost to set up their own system. Anyway, British Airways suggested terminals based on (then state-of-the-art) 386 networked PCs with a gateway card that talked to SITA, the airlines network. It was very expensive, but at the end of the day it offered just a plain vanilla terminal emulation screen on the PC. The functionality was all in the mainframe at the other end.
I worked for SITA at the time and so I knew Airline terminal systems back to front. I had a couple of friends in British Airways and one of them had mentioned that they renewed their terminals every 5 years or so. So I found a lot of old BA terminals that were going to be thrown out in BA’s offices in South Africa, and they were only too pleased to get a few dollars for them.
They were literally dumb terminals, and big and ugly and heavy with it, but they had a lot of life left in them, I could get full service manuals for them and parts were usually easy to find. So I left SITA, bought BA’s old terminals for a song, and offered the travel agents leased terminal systems (hence no heavy capital expenditure, which was a huge attraction). I demonstrated them to the travel agents one day at Air Zimbabwe’s offices at Harare Airport; British Airways coincidentally and helpfully flew Concorde into Harare for the day, which alone made sure that most of the travel agents came out and saw what I had to offer.
The terminals were Z-80 based and connected to a “Cluster Control Unit” or CCU, also Z-80 based, with 8 RS-232 interfaces, one for the uplink to SITA, the airlines data network, and the other 7 for terminals and / or printers.
The RS-232 interfaces caused some of my problems. Zimbabwe has very heavy lightning during the summer thunderstorms but, compared to the ubiquitous 1488 and 1489 RS232 interface ICs, surge protectors were fairly expensive. So I lived with replacing blown interface chips. However the CCU had about 16 of them to cover the 8 interfaces, and finding out which particular IC was blown needed a lot of prodding around on the board. Sometimes a line would put out a positive OK but not a negative, and without data on the line, that was almost impossible to find.
So I designed and built a “USART emulator”. The CCU had four 2-channel Z80-SIO USART ICs (one of the interfaces was Synchronous with clock signals, and the rest were Async with a couple of handshake lines). My tester plugged in instead of the USART IC and drove all the interface output lines with a 1-Hz square wave (yes, from a 555!). A companion 25-way D-plug adapter showed, with LEDs, whether the RS232 lines on that interface were giving both + and – outputs. A loopback switch sent the RS232 signals back to the RS232 receivers and back to my USART tester, which showed with more LEDS if the input signals got back in ok. With the aid of a cross reference table showing which signals on which USARTs used which interface chip, the blown chips could rapidly be located and replaced. And socketed, though Murphy’s law ensured that I very rarely replaced the same chip twice!
The keyboards were another source of problems. Most of them were the capacitive type where a disk of insulated foil is brought down by a key press on top of two pads on a PC board, hence making a capacitive path between them. On the older keyboards the foil disks were held on to the key mechanism by a disk of soft foam, which with use and age began to disintegrate. I managed to find a solution for this. The foil laminated between two layers of plastic, which is used in the bladders in wine “boxes”, was almost identical to the original foil. And thick double-sided tape worked almost as well as the foam disks, though it gave a slightly harder “feel”. My main problem, though, was testing the keyboards before and after repair. Some of the most used keys – and hence the ones that failed most often - only had a noticeable function when the terminal was communicating with a host system, which I did not happen to have in my workshop. So I designed a keyboard tester – a 74LS373 latch grabbed the 8-bit keyboard output and displayed it on 8 LEDs. A transistor and speaker on the strobe line gave a nice audible click whenever a key was pressed. Simple but effective, and any dodgy keys could be immediately identified and fixed.
One day one of the Travel Agents asked me, “We have a PC on each of our desks, along with your terminal. Why can’t the PC be the terminal as well?” I started explaining that the terminals didn’t talk the same language as PCs….. but even as I did so I was thinking about ways round that. And really, PCs then always had an RS-232 serial port or two, so why not? The more I thought about it, the more I was sure it could be done.
I borrowed a protocol analyzer and captured some exchanges between a working terminal and the CCU controller. Most of the letters and numbers were ASCII, but some of the more proprietary keys (and these were VERY proprietary terminal systems) used various control and symbol characters, sometimes different codes for the same character depending on whether it was upline or downline. In addition, some of the characters on the terminal screen did not correspond to any standard PC characters. On top of that, the standard terminal screen was 30 lines of 64 characters, which did not fit into the standard PC DOS screen of 25 lines x 80 characters. Clearly I had a few hoops to jump through here.
I found a font editor program that could produce and edit fonts of any desired matrix size. Using an 8x8 character gave a screen of 43 lines x 80 characters on a VGA screen, enough to fit a “window” of 30 x 64 for my terminal screen. I could also edit some of the font characters to give me the special symbols that were used on my terminals. The Qbasic that came with DOS 6.2 was good enough for a “proof of concept” terminal emulator program, and worked so well that I stuck with it, using the Quickbasic compiler thereafter to generate a standalone EXE file.
I had a main loop that scanned the keyboard and the COM port for input, then performed character translations where needed on the keyboard input codes and sent them off to the COM port, and wrote incoming characters from the COM port to the screen. . I had to code for character sequences that were used for positioning the cursor, clearing the screen, etc but my protocol analyzer had given me all the information I needed to do that. The extra screen lines I used for a clock, my company name and phone number, the travel agent name, and some information as to which PC keys were mapped to special functions that were only found on my terminal keyboards. My program was very well received by travel agents who were already using PCs on their desks. And freed up some terminals (I only had a limited supply of them) to use at other travel agents.
Some agents had old XT monochrome PCs on which my program would not work. When I bemoaned this fact to a friend who worked in British Airways, he reminded me that BA could configure 16-line screens instead of the usual 30-line types. So I wrote another version of my terminal program to give a 16 x 64 window in a 25 x 80 screen and more old PCs could be used as terminals. More happy customers.
Then one of the travel agents asked if I had a solution for their problem: they had a small office within a United Nations office, with one staff member, and as they paid a fair bit per connection to the Air Zimbabwe system, it was not economic to get a separate connection for one small office. By this time I was on a roll. “Yes, I can help you there…” I wrote yet another version of my program to work via a dial-up modem. By sharing their fax/phone line at the UN office, and dedicating a spare phone line at their main office, they could now use a PC as a remote terminal. I got some cheap end-of-line modems from a supplier of mine, and got yet more happy customers.
My BA friend was amazed by the adaptations I had made to their old equipment, and told the manufacturer about them, and they were similarly astonished at the use to which their old equipment had been put – they were then making a newer (and more expensive) line of terminals including a PC card adapter, but they still didn’t do remote dial-ups!
My systems were used by most of the Zimbabwe travel agents for quite a few years, until Air Zimbabwe connected them to the Galileo system which offered much more functionality to travel agents than the basic Air Zimbabwe reservation system did. Although my systems were not state of the art technology, the challenges I had in maintaining them, and making them do things their creators never intended, gave me a lot of fun and satisfaction as well as providing me with a good income. And you can’t ask much more of life than that.
About Author David Ashton: "I’m not sure what I am….. I was born in London, UK, raised and trained and worked in Rhodesia, then Zimbabwe, and I now live in Australia. (So I’m a Pom-Rhodie-Zimbo-Aussie??) Work-wise it's much the same. I have run electronics labs and managed telecoms centres, run my own comms business, and I am now working as a telecoms specialist keeping a large comms network going. I’m a jack of all trades, and yes, admit I’m master of none, but I kinda like it that way. It makes it difficult to get bored."


RDentonSr
12/17/2010 6:57 PM EST
I agree that a "Jack-of-all-trades" seldom gets bored! That's been the story of my life too.
Sign in to Reply
WKetel
12/17/2010 8:26 PM EST
I give David a sincere salute for such expert recycling. Certainly this is an excellent example of conserving resources and helping people at the same time. Great Job, David, and thanks for telling us about it.
Sign in to Reply
David Ashton
12/17/2010 10:23 PM EST
Thanks William, though you make me out to be more altruistic than I was! My original aim was to fill a gap in the market and hopefully make some money. Thankfully, I did both, for a few years.
I had heard rumblings from travel agents I knew that the PC / Gateway card solution originally proposed to them was too expensive for a lot of them, and they indicated that they'd love a leased solution. I remember going to the president of the Travel Agent's Association, to try and sell him my idea, expecting to be shot down in flames, only to be told that I'd made his day, as he now had a solution for his members who didn't want to splash out on PCs.
I ended up maintaining a lot of the original PC systems that the larger agents used, as the guys who set them up had left the company that provided them.
It's the kind of thing that could only happen in a small and relatively third world country like Zimbabwe. People in such places are only too keen to keep things going that little bit longer, and use unconventional solutions like this. I'm now in Australia and the "throwaway" attitude here horrifies me. I'm forever rescuing old equipment from the skips at work and doing things with it or stipping bits off it (which gets me some funny looks from the Aussies!).
I ended up recycling some of the bits from the old terminals too... my workbench power supply with 0-30V, +/-5V and +/-12V outputs is almost entirely built from bits from those terminals....
Sign in to Reply
http://www.lulu.com/spotlight/poconoarmchairreview
12/21/2010 9:39 PM EST
I love the detail in your story, and the clever salvaging you performed. Reminds me of a combination of Mr. Scott and MacGyver. I have a lot of respect for the ability to renew, recycle, and reconfigure old equipment.
Sign in to Reply
David Ashton
12/21/2010 10:31 PM EST
As with William above, you probably flatter me a bit, Rich, but many thanks.
Sign in to Reply
David Ashton
12/22/2010 2:59 AM EST
Been thnking about the kind comments above. I AM a recycler but more because I can't bear to throw anything useful away than because of any base recycling ethic as such. In Zimbabwe the local patois has a verb "doba" meaning to gather or hoard. From it is descended a noun, "madobadoba" - one who hoards. That's what I am, but I'm only too glad to give stuff away if someone can use it.
Sign in to Reply
David Ashton
12/22/2010 3:20 AM EST
Oops. Posted before I wanted. Continued...example - recently where I work, some guys came in and started replacing all the battery-backed up emergency lighting. Didn't matter ifit worked or not, jsut replaced it. I asked about this and was told that it was more trouble than it was worth to replace batteries and/or tubes etc, so just replace the lot with new ones and come back in 3 years and do the same again. They were chucking the old stuff in the skips. I indicated an area outside my office. "Chuck it there rather", I asked them, and they did.
I ended up with around 20 double 4 foot fluorescent fittings. Remove the battery and inverter and rewire 3 connections and you have a bog standard mains fluro. A mate of mine was building a shed and took the entire 20 off me, saving himself around the $ 400 cost of new fittings.
The door emergency exit fittings had a charger, battery, inverter and twin 8W fluoro tubes. remove the charger, add a solar cell (also from the skips - junked pole mounted feeder voltage-current monitors) and Bingo - one solar shed light! OK, took me a couple of hours to make it up, and you can buy them for $ 15 - but hey, you must know how satisfying it is to switch on a light you've made yourself out of junk! And it's brighter and lasts longer than the bought one.
My latest acquisition is some old SCADA terminal boards. 6809 processor board with EPROM/RAM/RS232 and a bus on which you can hang boards with isolated digital inputs or relay outputs, or analogue inputs. So all I need to do is reprogram the Eproms and I can make them do all sorts of stuff. Yeah, a PIC will do much the same in 1/50th of the space (though without the isolation). A battery charger / cycler / capacity meter comes to mind (for all the rechargeables I got from the flouros above....)
I just need the time to get into them...THAT is my main problem....
Sign in to Reply
http://www.lulu.com/spotlight/poconoarmchairreview
12/22/2010 4:10 AM EST
This is a little off-topic, but, speaking of reprogramming EPROMS, did you see the ad for the STM32 Design Challenge on eetimes.com? If you give them a preliminary design of how you'd use their board in a clever way, they'll give you one as part of a "Discovery Kit." I want one! But, you are right, time is a problem.
Sign in to Reply
http://www.lulu.com/spotlight/poconoarmchairreview
12/22/2010 4:15 AM EST
Speaking of fluoro tubes, I'm doing my best to stay away from them. The ones I have on hand I'm trying to make the best use of, but as they burn out, I'm replacing them with LEDs. The reason is the mercury in the fluorescents. When I go to the township's recycling center, they say it will cost me about half a dollar per tube to recycle. (And then they probably ship it to China, anyway.) So, I am doing my best to stay away from those things. If, by the way, you break one, you are supposed to get a nasty bit of mercury exposure, which I can do without, as I need to hold onto as many of my few remaining brain cells as I can. Reading the EPA instructions on what to do in the case of a broken fluoro tube was pretty scary.
Sign in to Reply
David Ashton
12/22/2010 5:03 AM EST
That reminds me of a nice story, which might solve your problem. Guy had a dead fluoro tube to dispose of, and didn't want to put it in the trash for reasons you outlined. On the way home in the train (standing room only) he was holding the tube, upright. So, eventually, were all his neighbours. When he got out of the train his problem was solved!
Ref mercury...I remember sneaking in to the Chem lab at school and getting a drop of mercury in my hand and letting it run around, and feeling how heavy it was. The ignorance of youth.....
Where are you Rich? Right now in the states it's 5 AM and earlier...usually it's only Aussies like me up at this EELife time..???
Sign in to Reply