Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Erlang Embedded Simulation, Thesis Report

Erlang Embedded Simulation, Thesis Report

Ratings: (0)|Views: 821|Likes:
Published by Rickard Olsson
The goal of this thesis is to develop simulators for device drivers and to create and describe a work flow for developing on Erlang Embedded using simulators. The motivation is that frequently testing code on hardware is inconvenient, takes time and only is possible if you have access to the hardware. The thesis was conducted at Chalmers University of Technology under supervision of Erlang Solutions Ltd. The code is open source and available on Github.
The goal of this thesis is to develop simulators for device drivers and to create and describe a work flow for developing on Erlang Embedded using simulators. The motivation is that frequently testing code on hardware is inconvenient, takes time and only is possible if you have access to the hardware. The thesis was conducted at Chalmers University of Technology under supervision of Erlang Solutions Ltd. The code is open source and available on Github.

More info:

Published by: Rickard Olsson on May 18, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/15/2013

pdf

text

original

 
Erlang Embedded Simulation
Rickard Olsson & Reza Javaheri03-06-2011
Bacherlor’s thesis in Computer ScienceDatavetenskapligt ProgramDepartment of Computer ScienceChalmers University of Technology & University of GothenburgSupervisors:Hans Svensson, ChalmersRobert Virding, Erlang Solutions1
 
Abstract
The goal of this thesis is to develop simulators for device driversand to create and describe a work flow for developing on Erlang Em-bedded using simulators. The motivation is that frequently testingcode on hardware is inconvenient, takes time and only is possible if you have access to the hardware. By simulating simple device driverslike serial ports, buttons and leds, this thesis aims to prove that abetter development environment can be created.A development work flow describes how the current work flow withErlang Embedded can be improved by using simulators. The idea isthat you should be able to switch between real hardware and simu-lated mode by just changing an environment variable and providingnecessary configuration files. No changes in code are required.A recorder tool was developed to support simulation of devicesthat generate data such as sensors. The recorder can also be usedto quickly create a simulator replaying data traffic that have beenrecorded from an application previously. Taking advantage of 
dbg
module, the recorder captures messages that a process receives orsends off without any modification to the source code. Using therecorder tool, no API or application logic is needed to simulation asensor.The thesis was conducted at Chalmers University of Technologyunder supervision of Erlang Solutions Ltd. Erlang Embedded Simula-tion is available at Github [20] and is licensed under: Apache LicenseVersion 2.0, January 2004 [1].
2
 
CONTENTS CONTENT
Contents
1 Acknowledgements 52 Introduction 6
2.1 Erlang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.2 Erlang Embedded . . . . . . . . . . . . . . . . . . . . . . . . . 62.3 Simulation in Erlang . . . . . . . . . . . . . . . . . . . . . . . 7
3 Denitions 84 Problem Description 10
4.1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104.2 Deliverables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5 Methodology 12
5.1 Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125.2 Measuring Quality of Simulators . . . . . . . . . . . . . . . . . 125.3 Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6 Related Work 14
6.1 Meck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146.2 Erlang Embedded . . . . . . . . . . . . . . . . . . . . . . . . . 146.3 GNU Xnee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146.4 Semi-formal Development of a Fault-Tolerant Leader ElectionProtocol in Erlang . . . . . . . . . . . . . . . . . . . . . . . . 14
7 Results 15
7.1 Simulators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157.1.1 Serial Stub Simulator . . . . . . . . . . . . . . . . . . . 167.1.2 Button Stub Simulator . . . . . . . . . . . . . . . . . . 167.1.3 LED Stub Simulator . . . . . . . . . . . . . . . . . . . 167.1.4 Stub Monitor . . . . . . . . . . . . . . . . . . . . . . . 167.1.5 Serial Demo . . . . . . . . . . . . . . . . . . . . . . . . 177.2 Erlang Recorder . . . . . . . . . . . . . . . . . . . . . . . . . . 177.3 Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . 187.3.1 Simulator Accuracy . . . . . . . . . . . . . . . . . . . . 187.4 Workow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197.5 Convenience Scripts . . . . . . . . . . . . . . . . . . . . . . . . 227.5.1 Ember . . . . . . . . . . . . . . . . . . . . . . . . . . . 237.5.2 Internet Over USB-OTG . . . . . . . . . . . . . . . . . 233

Activity (5)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
S.Dharanipathy liked this
Marcus Taylor liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->