08.11.2012 Aufrufe

Carlos Manuel Rodrigues Machado Autonomic Ubiquitous Computing

Carlos Manuel Rodrigues Machado Autonomic Ubiquitous Computing

Carlos Manuel Rodrigues Machado Autonomic Ubiquitous Computing

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

The power supply circuit is very simple, as it consists only in a voltage regulator to supply the<br />

microcontroller with +5V from the external +12V dc. The noticeable feature is the capability of the<br />

microcontroller to monitor the voltage level before the regulator stops working. This monitoring helps<br />

the device to determine an imminent power supply shutdown or as a measure of the health of the<br />

external power supply. This information is used to save the device state before the power goes<br />

down.<br />

The Teleswitch device also gives feedback to users by showing the activation of inputs or<br />

outputs with 8 leds positioned near to the respective relays. Other 4 leds are used to show the<br />

correct function of the devices and with combination with 2 buttons the users can alter the<br />

configuration by changing the default binding between local inputs and outputs. The feedback<br />

circuit also has a buzzer which indicates the user, with a soft beep, that the fuse was broken. This<br />

feedback helps the user to understand the state of the device and it can be used for debugging<br />

purposes.<br />

Finally the Teleswitch device hardware is composed by an expansion connector that allows<br />

the connection to other sensors. This expansion is also used as an In Circuit Programming (ISP) for<br />

the microcontroller. For development, there is also available a JTAG connector.<br />

5.4.2 Teleswitch Firmware<br />

The Teleswitch prototype device software was programmed in C language, using a module<br />

structure to implement the different parts of the device firmware. No operating system was used<br />

because that would increase the overhead in the firmware using extra memory and processing<br />

power to execute the specific program. The memory usage in the firmware implemented was<br />

adjusted during the program development, and then defined as a fixed value.<br />

The software processing was divided into 3 priority classes, which allow the distribution of<br />

processing. The processing classes consist in high-priority and timed processing, low-priority but<br />

timed processing and background processing.<br />

- 82 -

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!