# how to distinguish between two zigbee wireless relays and 802.15.4 modems

**URL:** <https://forums.digi.com/t/how-to-distinguish-between-two-zigbee-wireless-relays-and-802-15-4-modems/14654>\
**Category:** XBee - 802.15.4\
**Tags:** modem, 4, 15, 802, zigbee\
**Created:** [April 6, 2015, 11:33am UTC](https://forums.digi.com/t/how-to-distinguish-between-two-zigbee-wireless-relays-and-802-15-4-modems/14654 "2015-04-06T11:33:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tscalzi](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tscalzi](https://forums.digi.com/u/tscalzi)\
**Post date:** [April 6, 2015, 11:33am UTC](https://forums.digi.com/t/how-to-distinguish-between-two-zigbee-wireless-relays-and-802-15-4-modems/14654/1 "2015-04-06T11:33:04Z")

</div>

I have two :  
ZR220HP , zigbee wireless relay controllers  
XBP24-AUI-EXT\_ZIGMO , USB 802.15.4 Modem

They will be used to control a light. I am able to communicate with them using vb6. For example:

```
MSComm1.Output = Chr$(254) 'Turn Off Relay 1, RED OFF
MSComm1.Output = Chr$(0)

MSComm1.Output = Chr$(254) 'Turn On Relay 1, RED ON
MSComm1.Output = Chr$(1)

```

How can I distinguish between the two relays? Right now, one modem is controlling both relays.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [May 13, 2015, 3:55pm UTC](https://forums.digi.com/t/how-to-distinguish-between-two-zigbee-wireless-relays-and-802-15-4-modems/14654/2 "2015-05-13T15:55:09Z")

</div>

In this case the radio is only acting as a wireless cable between the PC and the controller. How you control which relay is determined by the processor on the relay board and not the radio.
