Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Community Manager
886 Views

Intel edison and Arduino library for communicating with XBee

Jump to solution

Hi. I have an "Intel Edison board for arduino" and I want to connect it to another arduino that controls a humidity sensor, through xbee in API mode.

The xbee have connected it to the intel edison using an "Arduino xbee shield", but I can not send any information (the arduino xbee shield's leds tx and rx do not light up). In the code I use the arduino xbee library: https://github.com/andrewrapp/xbee-arduino GitHub - andrewrapp/xbee-arduino: Arduino library for communicating with XBee radios in API mode .

This is the code:

# include

# include

# include "Wire.h"

XBee xbee = XBee();

void setup() {

Serial.begin(9600);

xbee.setSerial(Serial);

}

void loop() {

uint8_t data[] = {'h','e','l','l','o'};

XBeeAddress64 addr64 = XBeeAddress64();

addr64.setMsb(0x0013a200);//XXXXX -> Msb address of router/end node ,

addr64.setLsb(0x40EC3BF9);//XXXXX -> Lsb address of router/end node

ZBTxRequest zbTx = ZBTxRequest(addr64, data, sizeof(data));

xbee.send(zbTx);

delay(1000);

}

Is the arduino xbee library compatible with intel edison? If I connect the ardino xbee shield in an arduino and I put the same code as in the intel edison, I observed that it transmits information.

I also wanted to ask if the best way to connect xbee to the intel edison is to use "arduino xbee shield" or a "xbee explorer board" and connect it to the usb port.

In the latter case, can I communicate with the xbee through a sketch made with the Arduino IDE? Or should I use phyton?

Thanks for the help.

Javier.

0 Kudos

Accepted Solutions
Highlighted
Community Manager
39 Views

Hi Javier,

Thanks for your interest in the Intel® Edison Platform.

I would like to let you know that I don't have the Arduino xbee shield nor xbee module to test it, however we'd suggest you to look at the http://www.intel.com/content/dam/support/us/en/documents/Galileo-Edison_ShieldTestReport_330937-002.... Intel® Galileo Board, Intel® Galileo Gen 2, and Intel Edison Board Shield Testing Report, there you can find detailed explanation and code that has been tested with the Edison (page 32).

Additionally, another user, KurtE, has mentioned that "WIth the Official Arduino shield, I believe you should put the switch in the micro position (not USB), it should configure the XBee to talk to IO pins 0, 1 of the Edison Arduino board, which corresponds with Serial1 in the Arduino world." You can check more details in the thread: /message/262865# 262865 https://communities.intel.com/message/262865# 262865.

Hope this information helps.

Regards,

 

-Yermi

 

View solution in original post

0 Kudos
3 Replies
Highlighted
Community Manager
40 Views

Hi Javier,

Thanks for your interest in the Intel® Edison Platform.

I would like to let you know that I don't have the Arduino xbee shield nor xbee module to test it, however we'd suggest you to look at the http://www.intel.com/content/dam/support/us/en/documents/Galileo-Edison_ShieldTestReport_330937-002.... Intel® Galileo Board, Intel® Galileo Gen 2, and Intel Edison Board Shield Testing Report, there you can find detailed explanation and code that has been tested with the Edison (page 32).

Additionally, another user, KurtE, has mentioned that "WIth the Official Arduino shield, I believe you should put the switch in the micro position (not USB), it should configure the XBee to talk to IO pins 0, 1 of the Edison Arduino board, which corresponds with Serial1 in the Arduino world." You can check more details in the thread: /message/262865# 262865 https://communities.intel.com/message/262865# 262865.

Hope this information helps.

Regards,

 

-Yermi

 

View solution in original post

0 Kudos
Highlighted
Community Manager
39 Views

Hi Yermi, thank you very much for the response.

I have found this http://electronics.stackexchange.com/questions/232350/can-an-xbee-in-api-mode-receive-data-through-s... link, which has allowed me to connect intel edison + xbee (with xbee explorer), arduino router and arduino end device, all with API mode.

Thanks.

Javier.

Highlighted
Community Manager
39 Views

Hi Javier,

 

 

Great! We're happy to know that good news.

 

 

Regards,

 

-Yermi

 

0 Kudos