I am excited to say that now according to Google Analytics I now actually have fans. Cool. Perhaps I will start selling shirts. Now for today’s exciting news item. My good friend and all around computer genius [Jim] has produced quite a nice terminal program that can host multiple serial devices in a single prompt. Its super easy to use. In hurry? Grab the git repo: https://git.jim.sh/jim/terminal.git. Just add all the devices you want to display as command line arguments and *presto* you have a color coded super prompt:
This is a great tool for debugging multiple devices at once. My latest project involves an EZ430 wireless kit and unfortunately I don’t have the $$ for IAR or CodeWorks. *yet*. So I am forced to use gcc which is cool but the Simpliciti network stack for the EZ430 has to be ported over and there are all sorts of hiccups and bugs that plague this sort of wireless network setup.
So, there I was angrily trying to debug the invisible ether when Jim comes along with this beauty. I threw in a couple of Micro FTX boards for USB->Serial, and in no time I had both devices printing out updates over their UART’s and I could see the communication in real time. Check it out:
Excited? Yeah most definitlely. Just grab the git repository and you’re good to go.
$ git clone https://git.jim.sh/jim/terminal.git $ cd terminal $ ./terminal.py --help usage: terminal.py [-h] [--quiet] [--baudrate BAUD] [--crlf] [--all] [--mono] [--raw] DEVICE [DEVICE ...] Simple serial terminal that supports multiple devices. If more than one device is specified, device output is shown in varying colors. All input goes to the first device. positional arguments: DEVICE Serial device. Specify DEVICE@BAUD for per-device baudrates. optional arguments: -h, --help show this help message and exit --quiet, -q Less verbose output (omit header) (default: False) --baudrate BAUD, -b BAUD Default baudrate for all devices (default: 115200) --crlf, -c Add CR before incoming LF (default: False) --all, -a Send keystrokes to all devices, not just the first one (default: False) --mono, -m Don't use colors in output (default: False) --raw, -r Don't escape unprintable characters (default: False)
Note you need the pySerial module to get this running so grab that with your favorite python installer (pip, easy_install, etc). One nickel to the first poster who can figure out the maximum number of devices this thing can support.
till next time,
PS. Get the news hot off the press: Follow the RSS Feed!