Friday 7 August 2009

Java/Swing Mirrorbow Remote Control Program

I wrote an application a while ago that I thought would be worth sharing with the world - it's a Java/Swing Application to drive a
Mirrorbow Ethernet IO Interface. I use the interface to control the power to a number of computers and peripherals in my attic, both to make remote operation possible and also to physically isolate them from the mains supply when not in use. I noted a while back that the VAX and Alpha both drew significant power from the mains even when the power supply switch was turned off.

The application looks like this when running:


You simply click on the button to toggle the power. The application mirrors the information displayed in this Swing panel on the built in LCD display of the mirrorbow:


The application is configured using an XML file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<controller>
<name>mirrorbow</name>
<address>192.168.1.199</address>
<port>
<number>4</number>
<pin>
<number>1</number>
<equipment>
<name>DS10L</name>
</equipment>
</pin>
<pin>
<number>2</number>
<equipment>
<name>DEC3K600</name>
</equipment>
</pin>
<pin>
<number>3</number>
<equipment>
<name>VAX4K90</name>
</equipment>
</pin>
<pin>
<number>4</number>
<equipment>
<name>VAX4K60</name>
</equipment>
</pin>
<pin>
<number>5</number>
<equipment>
<name>EXTSCSI</name>
</equipment>
</pin>
<pin>
<number>6</number>
<equipment>
<name>ZX6000</name>
</equipment>
</pin>
<pin>
<number>7</number>
<equipment>
<name>LINUX</name>
</equipment>
</pin>
<pin>
<number>8</number>
<equipment>
<name>ANCIL</name>
</equipment>
</pin>
</port>
</controller>

I tried to make the implementation as generic as possible. The source code, compiled classes and Windows/Unix command line scripts can be found in mirrorbow.zip

The unit all this controls was hand built using a equipment box, eight IDC connectors, a relay board bought off ebay, a 12 volt power module extracted from a plug in adapter and a mains lead:

0 comments: