Hello,
First, here is how is have everything set up:
I have 1 Xbee radio set as "coordinator API" hooked to my computer.
(64-bit address is "0013A200 4064F504").
A second Xbee radio set as "remote AT" (64-bit address is: "0013A200
40763578"). This one has its D1, D2, D3 and D4 pins set as digital
output which are used as control lines to an analog multiplexer (the
mux has 16 inputs, which is too many to feed directly into the xbee).
The output of the analog multiplexer is going into pin 20 , which is
set up as an ADC with sampling rate 250ms.
Here's the problem:
Everything is working completely smoothly, except issuing AT commands
to the remote Xbee radio. I'm trying to periodically issue 8
different commands via the java API (at different time intervals):
"ATD1 4", "ATD1 5", ATD2 4", "ATD2 5", "ATD3 4", "ATD3 5", "ATD4 4",
and "ATD4 5". None of these commands end up i the Data output pins
being changed. They stay at their initial value.
If you look in the beginning of the program I linked below, the first
8 commands return good packets that make it look like stuff was set
right (you can see the output in the second link below). However, when
I start to issue commands in a loop, the address fields change..
Please let me know if I'm doing something wrong, because I can't seem
to figure out why the pins won't set!
If you want to see how I'm issuing commands, here's a pastebin of my
java code:
http://www.pastebin.com/beankhKu
Here's a sample of the output I'm seeing when running the program:
http://www.pastebin.com/VPs9kHM8
Thanks for your time, let me know if you need more information