Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

Galileo Gen2 Unable to receive xbee data on serialport

NK
New Contributor I
1,535 Views

Guys I am working on transmitting and receiving IO sample data from remote xbee to the xbee connected to the gen2.

I have already installed the serialport library and was trying to receive atleast the raw format of the xbee frames.

I had used the default UART code of intel xdk templates.But still I am unable to receive the frames.All I am seeing on the console is the MRAA version display.

Also I the galileo is unale to open the uart port which was evident when I could not see the console.log message which was within the serialport.on('open',....) event handler.

Any insights or suggestions would be greatly appreciated.

Thanks.

10 Replies
Paula_S_Intel
Employee
160 Views

Hi Nathan,

Have you tried using UPM library? UPM is a repository for sensors and actuators that use MRAA lib. Here is a sample code in python https://github.com/intel-iot-devkit/upm/blob/master/examples/python/xbee.py https://github.com/intel-iot-devkit/upm/blob/master/examples/python/xbee.py

I didn't test it, but worth a shot..

NK
New Contributor I
160 Views

Hey It did not work.

Should the xbee , on the receiver end, be in AT mode or API mode ?will it make any difference?

Any other solutions ?

Paula_S_Intel
Employee
160 Views

Hey Nathan,

Sorry it didn't work. Since I don't have an xbee, my only way of helping you is through other threads or repositories. I found a great response from DiegoV_Intel

Paula_S_Intel
Employee
160 Views

Nathan,

When you used serialport.on or related commands, did you specified what port you are using ?

like D0, D1 to communicate with XBee you have to use Serial1 instead of Serial. (credits to cMartu on thread )

Apparently this is important when you use UART (I'm not sure about that, someone in the community please confirm).

Hope it helps

NK
New Contributor I
160 Views

I mean there serial1 is the default UART port and it's number is 0(in c(eclipse) and javacript(intel xdk)), but are u talking in specific with arduino or in general?

Nathan

Paula_S_Intel
Employee
160 Views

Serial1 is used in arduino IDE when you wnat to work with UART.

Did you tried the initial setup? https://github.com/gjmorama/GALILEO/wiki/XBee-Initial-Setup XBee Initial Setup · gjmorama/GALILEO Wiki · GitHub

Carlos_M_Intel
Employee
160 Views

Hi Nathan,

I would like to know if you have been able to work on this.

Which libraries versions are you using?

Which image are you using?

Regards,

Charlie

NK
New Contributor I
160 Views

image is meta-clanton latest version..

And regarding the version of serialport, I had very recently installed it using npm so i hope it is the latest version.

But does it depend on the version of the serialport?

Sergio_A_Intel
Employee
160 Views

Hi KS_Nathan,

How have you installed and tested the serialport library? Have you already seen this link https://github.com/voodootikigod/node-serialport GitHub - voodootikigod/node-serialport: Node.js package to access serial ports for reading and writing OR Welcome your r… ?

Sergio

Sergio_A_Intel
Employee
160 Views

Were you able to try our latest suggestion, did you see the link we posted?

Sergio

Reply