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
Operating System and Hardware: Linux CentOS 6.7 64-bit
NodeJS Version: v0.10.42
Serialport version: >= 2.0.6
Python Version: 2.6.6
(Run node -v && npm -v && python --version to get the version numbers.)
node v0.10.42
npm 1.3.6
Python 2.6.6
Expected behavior
Open multiple serial ports, send and receive data on them.
Actual behavior
I receive the following error message:
Error: Port is opening
at SerialPort.open (/home/SIMU/node_modules/serialport/serialport.js:219:24)
at SerialPort. (/home/SIMU/node_modules/serialport/serialport.js:197:12)
at process._tickCallback (node.js:448:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:935:3
Steps and/or code to reproduce the issue
I called open on multiple connections with as a chain of "Q" promises.
Once the connections are opened I start the execution of my code.
To solve the problem i opened the ..../node_modules/serialport/serialport.js at line 219 and I commented out this error handler :
/_if (this.opening) {
return this.error(new Error('Port is opening'), callback);
}/
Now it works like a charm! everything as expected, but I wonder why this error handler was causing problems...
Is there maybe a more elegant solution? What are the negative effects of this modification I made?
==== SOLVED =====
I forgot to use the "openImmediatly" flag set to "false" while using .open() method.. Now it works like a charm again with the error handler... This is not an issue anymore.
The text was updated successfully, but these errors were encountered:
Operating System and Hardware: Linux CentOS 6.7 64-bit
NodeJS Version: v0.10.42
Serialport version: >= 2.0.6
Python Version: 2.6.6
(Run
node -v && npm -v && python --version
to get the version numbers.)node v0.10.42
npm 1.3.6
Python 2.6.6
Expected behavior
Open multiple serial ports, send and receive data on them.
Actual behavior
I receive the following error message:
Error: Port is opening
at SerialPort.open (/home/SIMU/node_modules/serialport/serialport.js:219:24)
at SerialPort. (/home/SIMU/node_modules/serialport/serialport.js:197:12)
at process._tickCallback (node.js:448:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:935:3
Steps and/or code to reproduce the issue
I called open on multiple connections with as a chain of "Q" promises.
Once the connections are opened I start the execution of my code.
To solve the problem i opened the ..../node_modules/serialport/serialport.js at line 219 and I commented out this error handler :
/_if (this.opening) {
return this.error(new Error('Port is opening'), callback);
}/
Now it works like a charm! everything as expected, but I wonder why this error handler was causing problems...
Is there maybe a more elegant solution? What are the negative effects of this modification I made?
==== SOLVED =====
I forgot to use the "openImmediatly" flag set to "false" while using .open() method.. Now it works like a charm again with the error handler... This is not an issue anymore.
The text was updated successfully, but these errors were encountered: