Home/Support/Support Forum/Simulating remote switch with XBee

Simulating remote switch with XBee

0 votes
Hi,

I'm trying to simulate "remote button" with two XBee modules. Button is connected to DIO1 (pin 19) on one XBee and volt-meter is connected to pin 19 of the other XBee. Xbee modules are XBP9B-DPST-001 (XBee-PRO 900HP).

XBee transmitter configuration:
atre
atd1 3
atir 64
atdh 13A200 <- address of the second XBee
atdl 40B47F46 <- address of the second XBee
atwr

atis <- button is released
01
0002
00
0000

atis <- button is pressed
01
0002
00
0002
atbc <-- counter is increasing

XBee receiver configuration:
atre
atd1 4
atwr
atgd <- counter is increasing

I expect voltage on DIO1 to go high (2-3V) when the button is pressed. Unfortunately volt-meter is always showing 30mV on pin 19 (DIO1) of receiving XBee, regardless of the state of the button. Could you please suggest what could be a problem?


Thank you!

-Alex
asked Feb 16, 2015 in Multipoint Proprietary by azhilyakov New to the Community (1 point)

Please log in or register to answer this question.

2 Answers

0 votes
What you are looking for is a product that supports DIO line passing. This product does not support that function. You need to use the XBee 802.15.4 modules for that function.
answered Feb 25, 2015 by mvut Veteran of the Digi Community (11,300 points)
0 votes
Thank you for your explanation.

I figured out that it is possible to use "Remote AT commands" to turn on/off DIO PIN on remote Xbee.

XBee frame to turn on DIO PIN 1:

7E 00 10 17 01 00 13 A2 00 40 B4 7F 46 FF FE 02 44 31 05 00

To turn it off:

7E 00 10 17 01 00 13 A2 00 40 B4 7F 46 FF FE 02 44 31 04 01

Explanation:

7E - Start delimiter
00 10 - Number of bytes between the length and the checksum
17 - Remote AT command request
01 - Frame ID for correlation with later response frame
00 13 A2 00 40 B4 7F 46 - Remote XBee address
FF FE - Reserved
02 - Apply changes on remote XBee
44 31 - "D1" characters
05 - Digital output high
00 - Checksum. Add all bytes between frame length and checksum, leave only last byte and subtract it from FF.

-Alex
http://RocketsEtc.com/
answered Feb 25, 2015 by azhilyakov New to the Community (1 point)
edited Feb 25, 2015 by azhilyakov
...