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.
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..
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
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
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?
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
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?
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… ?