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

Software, Examples, Code, Tools

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

Computing Department
Lancaster University,
UK

Serialterm - ADXL202 Acceleration board - DrDAQ picotech sensor board - Threads - More Examples - 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. Tested on Windows 2000. .

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
Reading from the ADXL202 board

Two examples that facilitates the ADXL202 evaluation board for reading acceleration information

On is a basic example that shows how to read values from the board (the board is based on the ADXL202 chip from Analog Technologies - www.analog.com). The other is a tool for rapid prototyping of context-aware applications. The programs are available in source code (developed with MS Visual Basic 6.0)

 

ADXL202 board
Reading from the DrDAQ sensor board

Two examples that facilitates the DrDAQ sensor board for reading various sensor information

On is a basic example that shows how to read values from the board (DrDAQ from www.picotech.com). The other is a tool for rapid prototyping of context-aware applications. The programs are available in source code (developed with MS Visual Basic 6.0)

 

DrDAQ sensor board

Example of multi-threaded code for Windows

This very simple examples shows how to use threads under windows. The multithreaded program prints out text to the screen from each of the threads at different speed. (If you are using the Visual C++ development environment, select the Multi-Threaded runtime library in the compiler Project Settings dialog box - see C/C++, Code Generation!) Tested on win2000.

 

Threads

 

Further examples on my old page at TecO

 

More Examples
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