During final testing of the MCIR-Link before we shipped our first kits
(to ensure our part selection was ok), we found a problem with the
firmware.
The HCS-II allows you to have up to 8 MCIR-Links which is handy for
controlling devices in multiple rooms (or 'zones').
Well, during testing (and during an MCIR-Link repair) I noticed that you
could not change the address of the MCIR-Link. For example, when you
put the MCIR-Link in interactive mode you should be able to do this:
IR0> A=IR4
IR4> A
Network Address is 4
IR4> A=IR1
IR1>
And so on.
However, the behavior I have seen with firmware versions 1.1e and 1.1f
is this:
IR0> A=IR4
0 > A
Network Address is 0
0 > A=IR0
IR0>
It will only accept IR0, otherwise the value is bogus.
I've opened a bug to track this though I don't know if it will be fixed
or not since a) the MCIR-Link may be replaced at some point and b) there
is a workaround.
The MCIR-Link firmware allows for the address to be set in hardware.
This is done with the inputs P1.1-P1.3 on the expansion jumper. Pulling
an input low signals a 1 bit. Thus to set the MCIR-Link to address 4,
pull P1.3 low and reset the board. We recommend you solder permanent
jumpers to ensure the address is maintained if the power fails (since it
is NOT stored in battery backed RAM using this method)
Consult your schematic for the proper pins to use. Holding your board
with the prototype area on top, look at J1. The 2nd, 3rd, and 4th pins
from the left on the bottom row are P1.1, P1.2, and P1.3 respectively.
If you have any questions, let us know. I'm still looking at the code
to see why this is broken and if there is an easy way to fix it (i.e.
twiddling bits in the EPROM image or similar) We'll keep you posted.
|