Pages: [1]   Go Down
Author Topic: [Problem] Comunication PC - Arduino Series 1 API mode  (Read 443 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,

I´m just trying a simple comunication between the PC and the Arduino using a xbee series 1 in API mode.

I conected a xbee in a explorer usb and plugged to the computer. To send and receive comands I´m using the Java xbee-api. This xbee is configured as coordinator, by the X-CTU, as follows:

PAN ID: 2323
MY: 250
CE: 1
AP: 2

In the other side I have an Arduino Uno and a xbee conected by a xbee shield. I´m using the 0.3 xbee-api Arduino to send and receive data from xbee. This xbee is configured as a end device, by the X-CTU, as follows:

PAN ID: 2323
MY: 100
CE: 0
AP: 2

Then I tried to establish a comunication between them in two diferent ways:

First I ran the ApiSenderExample in the JAVA api and configured the correct parameters and uploaded the Series_1 RX Example on Arduino. So, the sender sent the packet and received the ACK sucessfully, but the Arduino can´t recognize any data received. The xbee´s can comunicate each other but the Arduino can´t read.

The other way, I ran the ApiReceiverExample in the Java api and uploaded the Series_1 TX on Arduino. In that way I had nothing working. The coordinator don´t receive anything. One thing that I´ve seen is that the leds DIN,DOUT an RSSI from the shield (sender) don´t flash any moment.

So, what am I doing wrong? The codes that I used are attached and the xbee firmware is 10E6.

Att,

Jean Furtado Soares

* ApiReceiverExample (JAVA).txt (3 KB - downloaded 13 times.)
* ApiSenderExample (JAVA).txt (4.15 KB - downloaded 17 times.)
* Series_1 RX.txt (2.92 KB - downloaded 13 times.)
* Series_1 TX.txt (3.71 KB - downloaded 11 times.)
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49365
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Series 1 models are normally configured setting MY and DL. MY on one is DL on the other. Neither value should be 0.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Series 1 models are normally configured setting MY and DL. MY on one is DL on the other. Neither value should be 0.

I configured that when I was using the transparent mode. Even in the API mode I have to config this?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49365
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I configured that when I was using the transparent mode. Even in the API mode I have to config this?
I'm not sure. Can't hurt.
Logged

Pages: [1]   Go Up
Jump to: