Xbee Series 2 Change Detect - Packets sent but no LED light

Hi all, I’m stuck and I’ve looked everywhere with no luck! :pray:

So, I’m trying to get change detect to work on two series 2 Xbees and am yet to get it working.

I’ve read the manual, searched extensively on the net and also left a message on the Digi forum which has remained unanswered. I’m thinking I’m missing something very obvious or hardly anyone knows how to get it working!

Here is my set-up:

On the detecting xbee (Zigbee Router AT) I have set IR50 and IC18 and have a button on DI03 (D3=3).

The detecting circuit is:

Side one of switch: jumper to xbee pin3. 10k resister to +3.3V

Side two of switch: jumper to ground.

On the receiving Xbee (Zigbee Coordinator API) I have set to D3 = 4 to which I have attached a LED.

The receiving circuit is:

jumper from pin3 to 330 ohm resister to led to ground. led is correct polarity.

When using the XCTU terminal I can see that the button press on the remote xbee is having an effect on the xbee hooked up to my computer. However, when I put the receiving xbee back in the circuit the button press has no effect. The change I’m seeing in XCTU is:

when button is pressed:

IO Data Sample RX Indicator (API 1)

7E 00 12 92 00 13 A2 00 40 A2 3B 3D 87 74 01 01 00 08 00 00 00 59

  • Start delimiter: 7E

  • Length: 00 12 (18)

  • Frame type: 92 (IO Data Sample RX Indicator)

  • 64-bit source address: 00 13 A2 00 40 A2 3B 3D

  • 16-bit source address: 87 74

  • Receive options: 01

  • Number of samples: 01

  • Digital channel mask: 00 08

  • Analog channel mask: 00

  • Digital samples: 00 00

  • Checksum: 59

When button is let go:

IO Data Sample RX Indicator (API 1)

7E 00 12 92 00 13 A2 00 40 A2 3B 3D 87 74 01 01 00 08 00 00 08 51

  • Start delimiter: 7E

  • Length: 00 12 (18)

  • Frame type: 92 (IO Data Sample RX Indicator)

  • 64-bit source address: 00 13 A2 00 40 A2 3B 3D

  • 16-bit source address: 87 74

  • Receive options: 01

  • Number of samples: 01

  • Digital channel mask: 00 08

  • Analog channel mask: 00

  • Digital samples: 00 08

  • Checksum: 51

So the last byte of “digital samples” changes from 00 to 08, which I interpret as a sample being sent. However, when the receiving xbee is returned to the led circuit, the led does not light and there is no change in voltage at the pin.

Does anyone have any idea what might be going on here? It feels like I have tried everything so am completely stuck!

Many thanks

If you are trying what it known as virtual wire or linepassing then unfortunately for you it only works on Series 1 Xbees firmware (802.15.4)

http://www.digi.com/support/kbase/kbase … tl?id=3522

See the notes on the end.

The one vital line I missed!! Many thanks for that Valen, at least I can move on now… Time to look into shrimping… http://shrimping.it/blog/shrimp/

If you mean that you would need to add a microcontroller then yes. You need something to interpret the API packet and output it on a GPIO pin. But I don’t think you need one of those wireless modules extra. The Xbees Series 2 would suffice as the wireless link I guess.

[EDIT]Whoops, those are just USB to serial modules, not wireless transceivers. Disregard that.

No worries, many thanks. I was hoping to avoid using microcontrollers (or arduino) due to cost as I’ll need a few. These guys make doing things from scratch seem much easier (and cheaper) so I still have hope of achieving my end goal.