Serial Connection Software For Mac

May 18, 2020  CoolTerm is a simple serial-port terminal application (no terminal emulation) that is geared towards hobbyists and professionals with a need to exchange data with hardware connected to serial ports such as servo controllers, robotic kits, GPS receivers, microcontrollers, etc. Features include display of received data in text or hexadecimal format, support for multiple concurrent connection (if. The field that now shows 'secure shell' can quickly switch to other connection types like telnet or serial cable. Keyboard remapping profiles allow you to completely redefine the keyboard. Each key or key combination can be mapped to send text, connect to a host, start a script, perform a menu function, etc.

Connecting Two Macs With a Serial Connection

Contents

  1. Introduction
  2. Procedure

Introduction

One of the best things about Macs is that they all come with built in networking capabilities. This can take the form of an ethernet card but many older Macs don't have this. However, all Macs have a modem and printer serial port and it is very easy to just take a printer cable, stick it into the printer ports of each Mac, set up file sharing and you're away! This page is designed to help you with that task.

Pros

Why would you want to connect two Macs in this way? Here are a few ideas:

  • If you have ever bought a new Mac then you will know that all you have to do is plug it in and you're away. However, you will also know that although everything works fine, it takes a while to go through the process of transferring all of your applications and work from your old Mac. If you are unfortunate enough to only have a floppy disk drive, this process will take you forever. By networking two Macs, you can simply copy stuff from one hard drive to another by dragging and dropping. Admittedly this is a bit slow but you can just leave it going overnight and in the morning, hey presto!, your lovably customised old Mac has been transplanted into your new one. However, you really should install your applications from the original disks as often applications have essential files in the system folder rather than the application folder.
  • You may have a desktop Mac with a CD-ROM drive and a PowerBook without one. By networking the Macs together your PowerBook can access the CD-ROM drive.
  • If you have a crusty old LC then why not use its hard drive as extra storage space?
  • Network gaming works well with this method.

Cons

There are a few reasons why you shouldn't use the printer cable method:

  • If you find that you are networking your Mac a lot in this way, you should consider getting a proper AppleTalk connection kit or an ethernet connection. These aren't very expensive and will save wear and tear on your printer port with all of the inserting and removing of cables. Another advantage is that the kit is electrically isolates the two Macs which brings me to my second point.
  • In theory it is possible to do damage to the computers because the cable does not isolate the computers from eachother. What this means is that if there is a damaging power surge, rather than just losing the one computer, you will lose both. On the other hand, how many times have you had your Mac damaged by a power surge?
  • It is slow. I usually equate it to about the speed of a floppy disk. However, it does have the advantage that you can leave it alone while you do something else and it is free. If you want to network your computers more quickly you should invest in an ethernet connection.

Procedure

Now we're past all of the pros and cons, it is time to actually get on with connecting the Macs together.

Requirements

You need:

  1. A printer cable like the ones which come with StyleWriters etc.
  2. All of the networking software described below. If you are unsure if you have it or not, get your system disks and custom install the Networking Software. If you have followed all of the instructions here and you can't get it to work, something is probably missing.

However, there are two types of networking software - Open Transport and the traditional networking software. Fortunately, they process is very similar for both but I will describe them separately. If one Mac is using OT and the other isn't, you can still network them. Just follow the instructions for your computer.

Setting up the connection

Open Transport

  1. Insert the printer cable into your Mac's printer port (the modem port will also work, just read 'modem port' instead of 'printer port')
  2. Open the AppleTalk control panel. It will ask you if you want AppleTalk turned on if it isn't already active, click 'Yes'.
  1. Select 'Printer Port' in the connect via menu.
  2. Close the AppleTalk CP.

Your Mac is now ready for file sharing.

Traditional Networking

  1. Insert the printer cable into your Mac's printer port.
  2. Open the Network control panel and select 'AppleTalk'
  3. Then click on the printer port icon.
  4. Close the Network CP
  5. Open the Chooser
  1. Click on the AppleTalk Active button.

Your Mac is now ready for file sharing

Setting up File Sharing

Fortunately this process is identical for both pieces of software. Note that if you simply want a network connection to link two applications (eg. games, FileMaker Pro databases) you already have that connection. File Sharing allows you to share files, it is one use you can make of the connection you have made.

  1. Open the Sharing Setup control panel
  1. Fill in the Owner Name, Owner Password and Macintosh name boxes.
  2. Select 'Start File Sharing'
  3. File sharing is now set up on your Macintosh but you still want the other person to see your files so you have to share them.
  4. Select the folder you want to share (this may be your Hard Drive) and select 'Sharing' in the File Menu.
  1. Click on the 'Share this file and its contents' checkbox.
  2. The folder is now shared. Note that you can change your access privileges in many ways but this sort of security is not really needed with a two way connection. It is easiest to make access as full as possible. If you really want to play around with this, you also need the 'Users & Groups' CP but I will not go into that here.

Seeing the Other Mac

At this stage, both Macs should have gone through the same process and should be at the same point. It is quite possible to only set up sharing on one Mac and then connect with the other though.

  1. Open the Chooser and select AppleShare
  2. You should now see the other Mac's hard drive appear in the 'Select a File Server' box. If it doesn't then either the connection is not set up properly or file sharing isn't set up properly. Go back and check through the instructions.
  3. Double click on the File Server you want (as you would logging into Thompson)
  4. You will be prompted for a username and password. Enter the owner name and owner password here. You can connect as a guest if you set up the host computer correctly. To do this, open the Users & Groups CP, select guests and select the 'Allow guests to Connect' button. You must also allow guests access to your hard drive. It is easier to log in as the owner leaving the password blank though.
  1. Now another Hard Drive icon should appear on your screen. When opened it will operate exactly as if you were looking at your own hard drive.

These are just the very basics of file sharing. There is a whole lot more but this was designed primarily as an introduction to networking two Macs rather than a guide to becoming a network manager. If you want to play around some more then use the AppleGuide which is very helpful in this respect. It can be quite fun to play network managers by creating users and groups, changing access privileges etc as it reminds you how easy to use the Mac is, even for something as complicated as networking.

Troubleshooting

So, you've gone through all of the instructions but it still wont work. Here is a list of things that may have gone wrong:

  • Not all of the software you need is installed. Check in your Disabled Extensions to see if they are in there first and also do a search if you know what isn't present (eg. AppleShare or a CP). If you have never used the networking software before it is quite likely that you have deleted it all thinking that you'll never need it. Just install it again. If all of the obvious things are there, you still may have deleted something obscure like the library files OT needs.
  • Check that you are actually using the port you have set up for. It is very easy to have the wrong port selected and spend ages fruitlessly reinstalling software.
  • Ensure that the privileges are set up correctly. This will be the reason for any problems once actually connected.
  • You may find that your Mac 'hangs' occasionally while connected. This is not actually a crash but just the network taking its toll. You can tell if it is the network because there will be a pair of arrows in the top left of the screen flashing.

What Next?

What else can you do with this feature?

  • You can use file sharing over a modem. This involves either using AppleTalk Remote Access which actually comes free with some systems or a shareware alternative such as Netlink Remote.
  • You can use file sharing over the internet using a piece of shareware such as TCPSerial.
  • You can remote control a Mac using applications that utilise program linking.
  • Access CDs by sharing them in the same way as you share the Hard Drive.

Disclaimer

If in following the advice contained herein, damage is caused to a computer, it is the sole responsibility of the owner of the computer and no other person or institution.

©1996-04 JagWerks Media



CIRCUITPYTHONPROGRAMMING/MICROPYTHON / CIRCUITPYTHON

Connecting to the serial console on Mac and Linux uses essentially the same process. Neither operating system needs drivers installed. On MacOSX, Terminal comes installed. On Linux, there are a variety such as gnome-terminal (called Terminal) or Konsole on KDE.

Serial connection software windows

First you'll want to find out which serial port your board is using. When you plug your board in to USB on your computer, it connects to a serial port. The port is like a door through which your board can communicate with your computer using USB.

We're going to use Terminal to determine what port the board is using. The easiest way to determine which port the board is using is to first check without the board plugged in. On Mac, open Terminal and type the following:

ls /dev/tty.*

Each serial connection shows up in the /dev/ directory. It has a name that starts with tty.. The command ls shows you a list of items in a directory. You can use * as a wildcard, to search for files that start with the same letters but end in something different. In this case, we're asking to see all of the listings in /dev/ that start with tty. and end in anything. This will show us the current serial connections.

For Linux, the procedure is the same, however, the name is slightly different. If you're using Linux, you'll type:

ls /dev/ttyACM*

The concept is the same with Linux. We are asking to see the listings in the /dev/ folder, starting with ttyACM and ending with anything. This will show you the current serial connections. In the example below, the error is indicating that are no current serial connections starting with ttyACM.

Now, plug your board. Using Mac, type:

ls /dev/tty.*

This will show you the current serial connections, which will now include your board.

Using Mac, a new listing has appeared called /dev/tty.usbmodem141441. The tty.usbmodem141441 part of this listing is the name the example board is using. Yours will be called something similar.

Using Linux, type:

ls /dev/ttyACM*

This will show you the current serial connections, which will now include your board.

Using Linux, a new listing has appeared called /dev/ttyACM0. The ttyACM0 part of this listing is the name the example board is using. Yours will be called something similar.

Now that you know the name your board is using, you're ready connect to the serial console. We're going to use a command called screen. The screen command is included with MacOS. Linux users may need to install it using their package manager. To connect to the serial console, use Terminal. Type the following command, replacing board_name with the name you found your board is using:

screen /dev/tty.board_name 115200

The first part of this establishes using the screen command. The second part tells screen the name of the board you're trying to use. The third part tells screen what baud rate to use for the serial connection. The baud rate is the speed in bits per second that data is sent over the serial connection. In this case, the speed required by the board is 115200 bits per second.

Press enter to run the command. It will open in the same window. If no code is running, the window will be blank. Otherwise, you'll see the output of your code.

Great job! You've connected to the serial console!

If you try to run screen and it doesn't work, then you may be running into an issue with permissions. Linux keeps track of users and groups and what they are allowed to do and not do, like access the hardware associated with the serial connection for running screen. So if you see something like this:

then you may need to grant yourself access. There are generally two ways you can do this. The first is to just run screen using the sudo command, which temporarily gives you elevated privileges.

Once you enter your password, you should be in:

The second way is to add yourself to the group associated with the hardware. To figure out what that group is, use the command ls -l as shown below. The group name is circled in red.

Then use the command adduser to add yourself to that group. You need elevated privileges to do this, so you'll need to use sudo. In the example below, the group is adm and the user is ackbar.

Serial Connection Software Windows

After you add yourself to the group, you'll need to logout and log back in, or in some cases, reboot your machine. After you log in again, verify that you have been added to the group using the command groups. If you are still not in the group, reboot and check again.

And now you should be able to run screen without using sudo.

And you're in:

The examples above use screen, but you can also use other programs, such as putty or picocom, if you prefer.

Mac Serial Port

This guide was first published on Dec 19, 2017. It was lastupdated on Dec 19, 2017.

Serial Connection Software For Mac Windows 7

This page (Advanced Serial Console on Mac and Linux) was last updated on Jul 15, 2020.