Hello there,
I am trying to open the serial port using Node JS on pocketbeagle. However
i am getting the following error :
*{"err":"Kernel does not include CapeMgr module"}*
what is it that i need to do differently in pocketbeagle. This same code
works for my pocket beagle. i have also ensured that my ttyO4 is enabled.
My code is as below. any help would be highly appreciable. Thanks
var b = require('bonescript');
var port = '/dev/ttyO4';
var options = { baudrate: 9600, parser: b.serialParsers.readline('\n') };
b.serialOpen(port, options, onSerial);
function onSerial(x)
{
console.log(x.event);
if (x.err) { console.log('***ERROR*** ' + JSON.stringify(x)); }
if (x.event == 'open') { console.log('***OPENED***');
setInterval(sendCommand, 1000); }
if (x.event == 'data') { console.log(String(x.data)); }
}
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/c6498329-8ab2-4474-9527-2fcbfcfc0c28n%40googlegroups.com.