- Thu Jul 10, 2014 1:45 pm
#172571
I've just received an Arduino Leonardo, an Xbee Shield, an Xbee Explorer, and 2 Xbee modules. I'm trying to run through the tutorials to get one Xbee to communicate with the other and have run into a problem. Here it is:
Following the tutorial at https://learn.sparkfun.com/tutorials/xb ... troduction, I've worked through the "Introduction" and "Hardware Overview" pages. I installed XCTU, then mounted an Xbee board onto the Xbee Explorer, plugged it into my host computer, ran XCTU and configured the Xbee using the "Add a radio module" and so forth. So far so good, it seems to configure perfectly.
Next, I want to similarly configure the second Xbee board, as told to do on the tutorial's "Example: Communications Test" page (https://learn.sparkfun.com/tutorials/xb ... ation-test). I mounted this second Xbee onto the Xbee Shield that is itself plugged into the Arduino Leonardo, and plug the Arduino into a different USB port on the host computer. The switch is in the "DLine" position.
Problem:
When I try to get XCTU to add this second module, XCTU lists the USB port that the Arduino/Xbee Shield/Xbee tripledecker is plugged into; the port name looks fine ("usbmodemfd..."). But, when I pick this port and then hit the "Finish" button in XCTU, I get a warning that I need to reset the Xbee. When I press the reset button on the Xbee shield, there doesn't seem to react and I end up cancelling. I then tried socketing the second Xbee module in the Xbee Explorer and seeing if that will do it, but XCTU warns me that there is already an Xbee radio associated with that port so I cancelled that try.
This leaves me unable to move on to installing and running the Arduino sketch that allows me to verify communication between the two Xbee's, as described on the communications test page.
Questions:
How can I configure the second Xbee when it is mounted onto an Arduino with Xbee shield? Isn't this what is intended in this tutorial? It shows this kind of setup being used to test communications on the tutorial communications test page; do I need some other setup to get things configured? Do I need to use 2 Xbee Explorers to get things setup and then move one Xbee to the shield and Arduino? Is there some sketch I should first load onto the Arduino? I've done this with a brand spankin' new Arduino, which has whatever sketch it comes with. Through all of this I've had the shield in the "DLine" switch position; is there some period when it should be in the "UART" position? And when the time comes to move the sketch onto the Arduino, do I need to first remove the Xbee shield or put the switch into a particular position? I've assumed "DLine" would be used for everything, as suggested in the tutorial.
Thanks.
-- equipoise
Following the tutorial at https://learn.sparkfun.com/tutorials/xb ... troduction, I've worked through the "Introduction" and "Hardware Overview" pages. I installed XCTU, then mounted an Xbee board onto the Xbee Explorer, plugged it into my host computer, ran XCTU and configured the Xbee using the "Add a radio module" and so forth. So far so good, it seems to configure perfectly.
Next, I want to similarly configure the second Xbee board, as told to do on the tutorial's "Example: Communications Test" page (https://learn.sparkfun.com/tutorials/xb ... ation-test). I mounted this second Xbee onto the Xbee Shield that is itself plugged into the Arduino Leonardo, and plug the Arduino into a different USB port on the host computer. The switch is in the "DLine" position.
Problem:
When I try to get XCTU to add this second module, XCTU lists the USB port that the Arduino/Xbee Shield/Xbee tripledecker is plugged into; the port name looks fine ("usbmodemfd..."). But, when I pick this port and then hit the "Finish" button in XCTU, I get a warning that I need to reset the Xbee. When I press the reset button on the Xbee shield, there doesn't seem to react and I end up cancelling. I then tried socketing the second Xbee module in the Xbee Explorer and seeing if that will do it, but XCTU warns me that there is already an Xbee radio associated with that port so I cancelled that try.
This leaves me unable to move on to installing and running the Arduino sketch that allows me to verify communication between the two Xbee's, as described on the communications test page.
Questions:
How can I configure the second Xbee when it is mounted onto an Arduino with Xbee shield? Isn't this what is intended in this tutorial? It shows this kind of setup being used to test communications on the tutorial communications test page; do I need some other setup to get things configured? Do I need to use 2 Xbee Explorers to get things setup and then move one Xbee to the shield and Arduino? Is there some sketch I should first load onto the Arduino? I've done this with a brand spankin' new Arduino, which has whatever sketch it comes with. Through all of this I've had the shield in the "DLine" switch position; is there some period when it should be in the "UART" position? And when the time comes to move the sketch onto the Arduino, do I need to first remove the Xbee shield or put the switch into a particular position? I've assumed "DLine" would be used for everything, as suggested in the tutorial.
Thanks.
-- equipoise