The Internet Power Line Adapter - University of Queensland
The Internet Power Line Adapter - University of Queensland
The Internet Power Line Adapter - University of Queensland
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Home Automation, <strong>Power</strong> <strong>Line</strong>s and the <strong>Internet</strong> Quenten Alick<br />
<strong>The</strong> client microprocessor must collect data from the power measurement<br />
circuitry. An ADC on the microprocessor will be used to collect this data by<br />
sampling the output from the power measurement circuit at a rate <strong>of</strong> 100Hz.<br />
<strong>The</strong>se samples will then averaged over a minute and the result will then be sent<br />
to the server. <strong>The</strong> sample rate <strong>of</strong> 100Hz, sixty samples and one byte per sample<br />
gives 6k bytes storage required.<br />
5.3 PC Operating System<br />
<strong>The</strong> choice <strong>of</strong> operating system for the PC needed to be made between DOS,<br />
Windows9x and Linux. Windows9x was discounted almost immediately due to<br />
the added complexity <strong>of</strong> programming in the visual environment. Also, network<br />
and TCP/IP programming under windows is much more difficult due to the<br />
Micros<strong>of</strong>t implementation <strong>of</strong> TCP/IP. This left the choice between DOS and<br />
Linux.<br />
Of these two, Linux was deemed to be a more suitable choice. Linux is a multi-<br />
tasking operating system, which lends itself better to the use <strong>of</strong> a web server. It<br />
also has built-in TCP/IP support that DOS does not have. Finally, there are<br />
embedded versions <strong>of</strong> Linux, such as ELKS, which could be used to port<br />
s<strong>of</strong>tware with a minimum <strong>of</strong> fuss should this system be converted to use an<br />
embedded processor.<br />
5.4 Web Server & PC Interface<br />
<strong>The</strong> PC interface to the microprocessor is fairly simple. It consists <strong>of</strong> setting up<br />
the serial port correctly then transmitting data in the format specified for the<br />
P300 network chip. <strong>The</strong> actual interface does not need to perform many<br />
operations, just to turn the adapter on or <strong>of</strong>f and to read a power value back from<br />
the client. A short program will be written to perform each <strong>of</strong> these operations.<br />
- 27 -