I have a setup of one xbee as a base and 2 xbees as remotes (A and B). The remotes each have a switch with an LED attached the switch. The switch is wired so when it is open the LED is on and when it is closed the LED goes off.
Global: firmware 10A1 and timers set to 0(disabled)
Remotes:
I have used to IC command to set the pins on the remote for change detect. for each respective pin.
Remote A - the switch is on D0 or pin 20 set to 3
Remote B- the switch is on D1 or pin 19 set to 3
On the Base the I have LEDs on the paired D0 pins 19 and D1 20. They are set to 4.
The Interaction
When I close the switch on xbee(A) pin D0. The led on D0 on base should turn off and stay off as long as the switch is closed and only open if the switch is opened back up
When I close the switch on xbee(B) pin D1. The led on D1 on base should turn off and stay off as long as the switch is closed and only open if the switch is opened back up
Currently, this works if I leave the switches open and only close each switch one at a time.
However, If I close the switch on Remote B pin D1 and leave it close the LED on the base pin D1 goes off as it should.
Then I close the switch on the Remote A pin D0, base’s the LED on D0 will go off but the LED on D1 will turn back on. and vice a versa.
It appears that the base is receiving the IC command and applying it to all pins. So if one pin is not in its “natural” state it will reverse it.
Is there a way to have the base recognize that remote A only should cause changes on D0 and remote B should only cause changes on D1?
See video.