It almost works out of the box. I changed baudrate to 9600 for my GPS and
data shows up. However I wanted one line of data at a time so I added:
var options = {
baudrate: 9600,
parser: b.*serialParsers*.readline("\n")
};
But *serialParsers* isn't defined! I added the following line at the end
of /usr/local/lib/node_modules/bonescript/serial.js
exports.serialParsers = m.module.parsers;
and it works!
--Mark
p.s. How do I do a pull request on bonescript?
On Thursday, December 19, 2013 1:49:30 AM UTC-5, Nick Farrell wrote:
>
> I am a newbie to BeagleBone Black(BBB) but have good knowledge about
> Arduino. I would like to know how to open a serial port in BBB using the 4
> UARTs available in BBB using BoneScript library and use cloud9 ide to see
> the serial data on the console. Can anyone help me on this issue.
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.