You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the serial ports on a BeagleBone. When I create a new serail port object it immediately crashes with FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed.
I have run my code on a regular machine and it works properly. So this seems to be an architecture issue (BeagleBone runs on an arm7). I'm not sure where to begin to look for the issue, but I would gladly accept some pointers.
Here is the function where it is failing:
var openSerialPort = function () {
port = new serialPort.SerialPort (UART_CONFIG.uart1.path, {
baudRate : 9600,
parser : serialPort.parsers.raw
});
console.log ("Serial Port setup and running...");
port.on ("data", function (data) {
port.write (data);
console.log (data);
});
port.on ('close', function (data) {
console.log ('serialport closed');
});
};
If you are interested, this is the rest of the file containing the function.
The text was updated successfully, but these errors were encountered:
Not sure how this happened, but after removing and re-installing the module (after I mucked with the native code enough that I wanted to start fresh) everything now works.
I'm trying to use the serial ports on a BeagleBone. When I create a new serail port object it immediately crashes with
FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed
.I have run my code on a regular machine and it works properly. So this seems to be an architecture issue (BeagleBone runs on an arm7). I'm not sure where to begin to look for the issue, but I would gladly accept some pointers.
Here is the function where it is failing:
If you are interested, this is the rest of the file containing the function.
The text was updated successfully, but these errors were encountered: