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

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

The Teleswitch network implementation is divided into 3 layers:<br />

Physical Layer<br />

• Physical Layer;<br />

• Data Layer;<br />

• Network Layer.<br />

The network hardware of the Teleswitch consists in a signal RS485 driver SN75LBC176DR<br />

connected to the USART microcontroller hardware. An extra microcontroller IO is used to activate<br />

the transition of the RS-485 driver. The physical signal is very robust to electromagnetically noisy<br />

environments, because it uses a differential balanced line in combination with a twisted pair wire.<br />

The reception circuit of the RS-485 driver is always active, allowing the microcontroller to<br />

send and receive at the same time and this way it enables a later data collision detection. The bus<br />

speed was set to 115.2kbps which is fast enough for sending home events (light switching or<br />

movement detection, etc) and slow enough for allowing the execution of nearly 700 instructions<br />

between receiving bytes interrupts on the microcontroller that runs at a 8 MHz clock. A faster CPU<br />

speed was not used because it requires more expensive clock circuit hardware and increasing<br />

device final cost.<br />

Data Layer<br />

The data layer is responsible for receiving and sending the bytes from and to the RS-485 bus.<br />

It may detect some physical errors like: data overrun and framing errors. These errors are directly<br />

obtained by the USART controller of the atmega329. The data integrity is checked in the network<br />

layer.<br />

- 87 -

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

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!