Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
1,379 Views

Galileo Gen2 Unable to receive xbee data on serialport

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.

Tags (1)
10 Replies
Highlighted
Employee
4 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..

Highlighted
New Contributor I
4 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 ?

0 Kudos
Highlighted
Employee
4 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

0 Kudos
Highlighted
Employee
4 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

0 Kudos
Highlighted
New Contributor I
4 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

0 Kudos
Highlighted
Employee
4 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

0 Kudos
Highlighted
Employee
4 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

0 Kudos
Highlighted
New Contributor I
4 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?

0 Kudos
Highlighted
Employee
4 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

0 Kudos
Highlighted
Employee
4 Views

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

Sergio

0 Kudos