Transferring files to the Osborne 1

As any of my friends could tell you, I’m pretty big into collecting vintage computers. It costs me $70/month in storage fees, but I am just completely drawn to some of the awesome technical creativity that went into early machines before standardization took hold of the market. Mixed with the nostalgia, closeness to the hardware, and challenge of using something less than user-friendly, these old machines are great. In particular, I’m a big fan of the early portables, or luggables to be more realistic.

One fantastic machine that I’m lucky to have 3 of is the Osborne 1.

Osborne 1

It’s a pretty sweet machine, running a Z-80 processor, 64K RAM, dual 5 1/4 floppies, a monochrome 5″ screen (love this, its absolutely tiny compared to the machine), modem port, serial port, battery port, parallel port, all folding into a suitcase.

If you’re lucky enough to get the original software pack, it actually comes with the a good amount of applications, including it’s OS CP/M (the precursor to DOS), Wordstar, Supercalc, CBASIC, MBASIC, and dBase II. However, I personally love vintage machines for their games and getting them connected to other computers. The machine sports a DB-25 serial port at 1200 bps, and I knew I could transfer the modest sized library of CP/M software that can still be found on the net over the serial link. I had no terminal software though, so I did some research and came up with the following after a long struggle (please leave a comment if you have any better info or corrections):

Transferring Files to the Osborne 1

  1. Use the DB-25 port – The machine has two serial interfaces, a DB-9 and a DB-25. There is not a lot of documentation out there regarding the difference, but from what I’ve gathered, the DB-9 is not a standard RS-232 serial port, but a TTL serial port specifically designed for use with the Osborne modem (that fit snuggling in the storage bay under the left disk drive). While I’m sure it’s possible to build or use a UART to convert TTL to RS-232, it’s easier to use the DB-25, which is indeed an RS-232 port.
  2. Do not use a null modem – One of the first things I kept running into was once I managed to find a way to transmit data (see below), my remote computer (my primary Debian box) got absolutely nothing over the line. Not garbled characters from a mismatch in speed, just absolutely nothing. I thought maybe my port was bad, so I tried a new Osborne hooked to another machine (even with a new cable), and still nothing. Of course, normally you would use a null modem to switch the send/receive pins when connecting a computer to another computer over serial link, which I was doing. It turns out that the Osborne serial port was probably designed to be used as a terminal, and hence it already does the crossover. I had to directly connect my serial cable from one computer to another, with no null modem, for it to work.
  3. Set the serial speed – Depending on what revision of the Osborne 1 you have, it will either have a default speed of 300 or 1200 bps. 1200 is slow enough, so you definitely want to make sure it isn’t set at 300 bps. The CP/M disk will contain a “setup.com” program that you can run to configure various settings, including serial speed. Make sure 1200 is selected.
  4. Use PIP to initially transfer files – PIP is a fantastic utility included with CP/M that allows data to be moved from one device to another – devices being both files or physical interfaces. With PIP, we can instruct the Osborne to dump a text file from a remote computer to a local file. While PIP has no error correction and is not designed to be a full terminal, it does get the job of initially getting a terminal program onto the machine. Usage consists of “PIP <target>=<source>”. So you could use it to copy a file from drive B to drive A, “PIP A:FILE.TXT=B:FILE.TXT”, or from the serial port to a file, “PIP B:FILE.TXT=RDR:”. RDR (short for reader, as in paper tape reader, oh the historical goodness in that one) is the device name for the serial port.
  5. Get the Kermit assembly modules (in hex) onto the machine – This part I gathered from instructions on z80.eu and using files from Columbia University’s Kermit Page. Columbia University has a huge archive of versions of Kermit for different computers, including CP/M machines. These consist of two files – the base Kermit module, and then a small module that is specific to the machine. In particular, cpsker.hex (the main kermit module), and cpvosb.hex (the Osborne 1 specific code). These previous links are copies I made of these files in case you can’t reach Columbia’s site for whatever reason. Start by instructing PIP to save data from the serial port to a file, e.g. “PIP B:CPVOSB.HEX=RDR:”, then dump the contents of this file on the remote computer to the serial port. After the transfer, you will have a good copy of cpvosb.hex on your Osborne (you may have to control-d, control-c, or control-z to end the transfer if the Osborne does not quit out automatically, sometimes it worked for me and sometimes it didn’t). The larger, main kermit module is a little more tricky.
  6. Get the main Kermit assembly module – Unfortunately, the main module is a little more tricky as its bigger than PIP’s buffer, so it must write a portion of the file to disk during transfer (as opposed to the entire thing at the end). The problem is, PIP has no error correction, and when it goes to use the disk drive, you WILL lose part of the file being transferred. The transfer takes a while anyway, so having to restart because of corruption is a giant pain. Since these hex files are simply text files, I split the file into 4 parts to decrease the chance of file corruption (and decrease the time I’d have to wait for each one if I had to retransmit). After splitting them into 4 parts, I followed the same procedure as in step 5 for each file. Once they were all on the machine, I cleaned up any extra line feeds introduced by the transfer with ED (ed is so non-intuitive it makes vi look like MS Word – reference for its use can be found here), then concatenated the files together with PIP (PIP full.txt=file1.txt,file2.txt,file3.txt,file4.txt). I then had both the kermit and machine module.
  7. Compile Kermit – Luckily, CP/M comes with both ASM and DDT on disk that allow compiling and linking source files. We will use DDT to link these two modules together. The following blurb is from the Columbia page with a few comments from me:
    
    
              ddt cpsker.hex <--- At the command line, DDT your base module
    
              NEXT  PC   
              3500 0100
              -cpvosb.hex  <--- insert the machine dependent module
              -r
              NEXT  PC
              xxxx 0000
              -^C  <---- control-c
    
              A>save dd kerm411.com  <---- executable file to create
    
          "The page count ("dd") used in the SAVE command is calculated from
          the last address ("xxxx") given by DDT in response to the R command:
          drop the last two digits and add 1 if they were not zero, then
          convert from hexadecimal (base 16) to decimal (base 10): 684F
          becomes 69 hex, which is 105 decimal (5 times 16 plus 9) -- but 6700
          becomes 67 hex, or 103 decimal."
    
    
    

    If you receive any errors or strange messages from DDT that don't match what's listed above, it's likely your files were corrupted during transfer (this happened twice to me) and you will need to try again. Also make sure that you have enough room on your floppy to create the executable, you might have to do some disk and file juggling!

  8. Assign Logical to Physical Device - This one you'll have to do every time you restart the machine before you use Kermit. CP/M machines have logical and physical devices. We've worked with the physical serial port device RDR, but there are logical devices that are connected to physical devices to perform translations. Kermit makes use of the PTR (paper tape reader) logical device, so we need to connect this logical device to the serial port physical device. We do this using the STAT command - "STAT PTR:=RDR:".
  9. You're Done! - At this point, you have Kermit, ready to use, on your Osborne 1. There are many implementations (as seen on the Columbia page) of Kermit for every OS, so finding one for Windows, OS X or Linux won't be an issue. There are lots of guides out there for using Kermit as well, so I won't mention the commands here - they're fairly straight forward. Kermit does have error correction and multi-file transferring capabilities, so you can let it go for 30 minutes and transfer something big with no worries. It can also be used as a terminal, so you can connect over serial link to a linux shell and have some fun!
  10. The first thing I transferred once Kermit was good to go was Zork-I, there is just something about text adventures on monochrome screens that is just awesome. Zork I, II, and III for CP/M can be found here. What's nice is these archives make use of a separate z-machine from the data file, so you can copy any z3 data file (which are the vast majorities, I used this method to play The Lurking Horror) in place of zork1.dat - just remember to rename it the same thing.

    Have fun with your Osborne 1!

    Zork 1 on Osborne 1

7 Responses to Transferring files to the Osborne 1

  1. stuart says:

    If your Osborne has no curly braces on the keyboard, try

    ^, (ctrl-comma)

    and

    ^. (ctrl-period)

    I think DELETE is ^?, and IIRC there are one or two other screwy combinations to generate other “missing” characters.

  2. andyc says:

    Hi,

    Very helpful guide, thanks very much. I think you have a typo though…

    When you want to load the cvposb.hex into ddt after the main kermit module the line should read :- icpvosb.hex (note the i) not just cpvosb.hex. Without the i it won’t work.

    Cheers.

  3. Jeff Mowery says:

    I know this is an old post but have to comment.
    Nice picture of the Osborne 1 second model. Glad to see there are still some working ones still around. The above pictured one was my first computer I owned.
    I had written a dbase program for it keeping track of my then wife’s babysitting business. I enjoyed using it until it finally started to give out. The screen would start to flicker then cut out, destroying any disk still in the drives. I learned to get the disks out fast when that started to happen.
    I am currently trying to find a Osborne I emulator and software that can read disk images from the Osborne I, but having no luck at all. There are CP/M 2.2 emulators out there but I would like to once again see banner login screens and even save the Osborne files on the disk images I was able to find on the internet.

  4. Stephen Griswold says:

    One note, the DB-9 wasn’t designed for RS-232 serial, but for a ‘Modem-Pack’ that fit into the disk pocket under the right drive, and ran from a DB9-F to 10-Pin IDC short cable. the Modem-Pack was only 300-baud capable. (Bell 103 standard, direct-connect to the phone line.) There was a FOG (First Osborne users Group) modification BIOS ROM, which you could make a slight modification, turning the Modem-Pack ON line into a software baud rate switch, which handled the open/close state of the baud rate jumper (insteasd of fixed 300/1200-600/2400, you could use programs like LModem, & the BBS front-end, BYE, to software-switch between 300,1600,1200,2400. (the FOG version was 1.45, a slight change to the last Double-density 1.44 BIOS.) I used to run one of the last few RBBS-CP/M BBS’s in the North-east US. (YOUr-BBS), and it ran on the new BIOS.. I was lucky, prior to losing my home, to have extracted the ROM content.

  5. Lyle says:

    Thanks for the post! I’m currently attempting this.

    Do you use a cable with flow control lines? I am just using RX,TX, and GND, and there doesn’t seem to be a transfer going on…

    Thanks again.

    -Lyle

  6. CloudInMyHead says:

    Great article. I would have never known about the proper serial cable had I not run across this article.

Leave a Reply

Your email address will not be published.