-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening more than 3 serial ports #1299
Comments
More informations :
|
Just found that my issue report is a duplicate #1221. Sorry for the noise... Can you tell me if I can keep by little hack ('commTimeouts.ReadIntervalTimeout = 10;' -- which also address the high CPU usage) or does it will cause others issues ? |
I don't know if it would cause issues or not. I'd guess not. You can tell us for sure. =) Added the note! |
I also added a note saying we really do need help to close #1221 it's a bit beyond my abilities with windows c++. I've put quite a few hours into it but I have a hard time debugging. |
SerialPort Version: 5.0.0
NodeJS Version: electron 1.6.10 (node 7.4.0)
Operating System and Hardware Platform: Windows 7 64bits
Have you checked the right version of the api docs?: yes
Are you having trouble installing and you checked the Installation Special Cases docs? no
Are you using Electron and have you checked the Electron Docs?: yes
Summary of Problem
Node-serialport can not open more than 3 serial ports. I am not familiar with node-serialport source code but it seems to start one libuv thread for each opened serial port. Unfortunately the default thread number is pretty low (4) so when 4 serial ports are opened simultaneously it can not respond to any other command (list, close, etc.).
Steps and Code to Reproduce the Issue
The text was updated successfully, but these errors were encountered: