Serial Terminal Working

I have made my WYSE serial terminal work with my Linux server. After yesterday’s confusion and frustration I went back to Maplin and bought a few things that made the task very simple. I bought a properly wired DB9-DB9 null modem cable, a DB9 gender changer and a DB9-DB25 adapter.

All it took was for me to connect the DB9 serial cable to the second serial port of the terminal, plug the other end into my server and run a getty. This is how easy it should have been yesterday, but it seems I was using a wire not designed for connecting between PCs and the terminal. God knows what it’s for, but it didn’t work.

I’ve written up a small Drupal book about my method to make this work. Read it here.

Obsolete hardware is obsolete for a reason

I have in my posession an Amiga 500, Amiga 1500, WYSE terminal and a Mac Classic.

Today I learned several things:

  • PCs running XP can’t read 720k floppies
  • Serial communications is still just as confusing as it used to be
  • Old hardware doesn’t work like you’d expect
  • Given the choice between soldering small, fiddly things yourself, or paying  £5 for someone to do it for you, choose the £5 option

One of my aims today was to get my A1500 reading floppy disks, since originally all that happened was an intense squeaking/grating noise would come out the drive, and the computer would have a bit of a fit and complain the disk wasn’t working properly. This was solved, after much faff, by swapping a diskdrive from the A500 and putting it in the A1500. Seems the drives are the same, apart from the fronts of them.

The original diskdrive in the A1500 was quite damaged, either years of fluff and dust had stuck to the read heads, or they were mis-aligned. Either way any disk put into the drive was instantly rendered a dead disk, and received a neat scratch near the edge that went right through the magnetic layer.

PCs won’t read 720k disks any more, so that makes it hard to copy disk images into the Amiga to write them to floppies. After all, writing Amiga floppies on a PC would just be too simple now, wouldn’t it.

The idea with the serial terminal was to hook it up to my Linux machine. This – obviously – meant I had to go out and buy a USB-Serial dongle for my Linux machine, modern PCs having between zero and one serial ports now. Despite being a no-brand one from Maplin, the Linux machine worked out what it was and said it was called ttyUSB0. Now all I had to do was run a getty and connect the serial cable up.

And this is where the trouble began. The cable I have is a null modem cable, with a male DB25 connector on one end, and a male DB9 connector on the other. PC serial ports are also male DB9 connectors.

In Maplin I saw a DB9 Female-Female gender changer, but it was a fiver and at home I have several female DB9 connectors of my own. Surely it’s not hard to make a genderchanger by hand. Yeah, right… whatever. Soldering to those connectors is hard, especially when nobody seems to provide pinouts of gender changers. Do the pins go straight through, as if the two connectors are soldered back-to-back, or do all the pins cross over? I tried both ways and the best I could get was a bit of random garbage in Minicom.

The rest of the day had me trying various cables I own, all of which look like null modem leads, and none of which worked. I will go to Maplin again tomorrow and get a collection of gender changers and serial cables. I want to hook my A1500 up to my PC to transfer files in addition to making this terminal work.

For a test I plugged my GPS into the terminal and after setting the comms parameters, was greeted with NMEA text shooting up the screen.

So, the next time you complain it’s hard making a USB device work, or that it’s such a pain having to install a driver disk, just remember what it used to be like. Is it 19200,8,N,1 or is it 115200,8,N,1? XON/XOFF or RTS/CTS or both? Or neither? And what serial port are you plugged into? And it takes so long transferring files at multi-megabit speeds doesn’t it.

VPNs, SSH Tunnels and my Macbook

This weekend away has been an excellent chance to test out my home network and remote access to it. Some of the things I’ve done were just as a test, other things have been really useful.

For a start I allow incoming SSH connections so that I can access my server from anywhere outside. I’ve used this for everything from transferring files to setting off backups of my system at home. To maintain consistency between logins, and to cope with faulty Internet connections, I use screen to keep control of my session.

Tip: Use the following .screenrc option to make your many screen sessions less confusing by printing a list of open sessions along the bottom of your display:

hardstatus alwayslastline "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %Y/%m/%d %0c:%s "

In anticipation of other remote connections I might want to make to my machine at home, I thought about setting up a VPN. There are several options, all described in detail across the Internet, so I’m not going into detail about how to configure things, I’ll just explain what I am using and where I found out the information that made it work. Continue reading

A collection of Amigas and a WYSE Terminal

I’ve just acquired an interesting collection of old computer kit. I now have:

  • An Amiga 500 without PSU
  • An Amiga 1500 with monitor and keyboard
  • A WYSE serial terminal
  • And a USB floppy drive

The A500 will probably end up sitting on a shelf somewhere until I can find a PSU for it. I’ll use the A1500 since it has a hard disk and a monitor; I don’t exactly trust 21 year old floppy disks or have a spare TV to use. The Amiga 1500 has a slightly damaged keyboard, but it’s only a few keys on the numberpad that I’ll probably never press anyway.

The terminal might have a problem that causes it to turn off randomly, but I tested it the other night for about an hour and it seemed OK. Once I’ve confirmed I can connect it to my Linux machine I’ll create a giant serial cable and put it downstairs somewhere. It’ll make a nice IRC client or quick login to my server to check things. I figure I can make a long serial cable from some spare Cat5 cable and DB9 connectors.

In Reading

I’m in Reading visting Dom and consuming his Internet connection. The drive down was quite uneventful, apart from me taking a wrong turning in some little village. In my defense I was busy shouting outrage at a petrol station charging 108.9p per litre!

After a bit telly and some chattering on the Internet we went to meet Bog, Markie and several others that I know from the Llamasoft forum. Except this wasn’t a Llamasoftie meetup, it was a pre-birthday food & beer for Bog.

Afterwards we went back to Bog’s and had a hilarious time playing the R/C plane simulator on his giant 30″ monitor (running at its native resolution – none of this 42″ plasma telly running at 1024×768 crap). We also watched some HD video and were unable to make it fullscreen, due to fullscreen being too large.  It was great and I want two :)