Im making a project where I use two Xbees. One of them is connected to a arduino(Duemilanove 328) and the other are connected to my mac trough a USB Explorer card(http://www.sparkfun.com/commerce/produc … ts_id=8687).
I have programmed the Arduino-Xbee to receive messages (Serial.available()), that I send from MAX/MSP trough the Explorer-Xbee to the Arduino. But how do I program the Explorer-Xbee to recieve messages from the Arduino?
I believe you have the XBees set-up in ‘transparent mode’ (AP command mode) therefore and serial data into the explorer it just passes this data into the XBee DIN serial pin.
To start and for testing just type what you want to send to the Arduino through the Explorer->XBee->XBee->Arduino. It works exating the same in the other direction. Whatever data the Arduino sends to the Xbee comes out of the Explorer into the MAC’s USB port.
Okey I see, but then I think the problem is somewhere else, because when I send something out on the Explorer from MAX/MSP the TX pin blinks on the Explorer and the LED13 on the Arduino(which I told to blink when Serial.available()) begin to blink(so this communication way works). But when I try to send from the Arduino to the Explorer - nothing happens on the RX pin on the Explorer.
I think there may be a communication problem between those two? (I have double checked that the AT commands are correct).
To send messages from the Arduino I use Serial.print() and Serial.write(), is that right?