Tutorial

Antoine Fraboulet

Andreea Picu

INRIA Rhône Alpes
ARES Project

CITI Laboratory
Domaine Scientifique de la Doua, INSA Lyon
Bâtiment Leonard de Vinci
21, avenue Jean Capelle
69621 Villeurbanne Cedex
France

Revision History
Revision 1.02007-11-07
First Draft

Abstract

First try of a tutorial for WSim that covers the basics through some simple examples.


Table of Contents

I. Introduction
II. Brief Presentation of the Tools
1. WSim: the Worldsens hardware platform simulator
2. WConsole: the Worldsens serial console
3. WTracer: the Worldsens trace reading tool
4. WSNet: the Worldsens wireless network simulator
5. Worldsens: the development framework
III. LEDs Example
1. Introduction
2. Compiling and executing the example
3. Converting and interpreting the traces
4. Debugging using WSim and Insight/GDB
IV. Timer Example
1. Introduction
2. Compiling and executing the example
3. Converting and interpreting the traces
V. Serial Port Example
1. Introduction
2. Compiling and executing the example
3. Debugging and LPMs
VI. Token Passing Example
1. Introduction
2. Example description and execution
3. Debugging a distributed application
VII. Credits

List of Figures

II.1. The place of WSim in the development process
II.2. WConsole example
II.3. Distributed simulation
III.1. Snapshot of the execution of the LEDs example
III.2. Trace of LED 1
III.3. First debugging snapshot
III.4. Second debugging snapshot
III.5. Third debugging snapshot
III.6. Fourth debugging snapshot
III.7. Fifth debugging snapshot
IV.1. Snapshot of the execution of the timer example
IV.2. Interruptions for the timer example
V.1. Snapshot of the launching of the serial console
V.2. Snapshot of the execution of the serial example
VI.1. Snapshot of the execution of the token passing example
VI.2. Snapshot of the debugging of the token passing example