Albrecht Schmidt's Homepage Publications & Presentations Projects Events Ubicomp@Lancaster  

Serialterm - Command line tool

Albrecht Schmidt (albrecht@comp.lancs.ac.uk)

Computing Department
Lancaster University,
UK

Serialterm - source code - Contact Details

 
   

Serialterm V1.1

This serial terminal program (serialterm) is a command line tool that was developed for debugging microcontroller hardware that is connected to the PC via serial line. The program reads characters from the keyboard and sends them them to the selected com-port (a option for local echo is given). At the same time it reads characters from the serial port and displays them on the screen in ASCII, decimal or hexadecimal style. The separator between displayed characters can be set to space, tab, newline, or 'nothing'. The output can be saved to a log-file.

Commandline Serial Terminal - Version 1.1 by A. Schmidt, Oct 2001
Lancaster University - http://www.comp.lancs.ac.uk/~albrecht/


serialterm port [speed] [DisplayMode] [Separator] [Echo][logfilename]
   port ::= com1 | com2 | com3 | com4 | com5 | com6
   speed::= 300 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200 | 230400
   DisplayMode::= ascii | hex | decimal
   Separator::= empty | space | newline | tab
   Echo::= no | yes
   logfilename::= <anyname> (if not provided no log is written)

Usage examples:
   serialterm com1 115200 hex space no logfile.txt
   open the terminal on port com1 with 115200 bit/s, print hex code of
   incoming characters, seperate them by space, no local echo, save
   output to the file 'logfile.txt'

   serialterm com2 19200 decimal tab yes
   open the terminal on port com2 with 19200 bit/s, print decimal code
   of incoming characters, seperate them by tabs, do local echo, no logfile

 

Serialterm
Source code:

Sourcecode

Albrecht Schmidt, MSc, Dipl. Inf.

Computing Department
Engineering Building, Room A13
Lancaster University
Lancaster, UK
LA1 4YR

 

Tel: +44 (0) 1524 593786
Fax: +44 (0) 1524 593608

E-Mail: albrecht@comp.lancs.ac.uk
Web: http://www.comp.lancs.ac.uk/~albrecht/

Contact Details