Skip to content
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

RPI3 CPU 180% #68

Closed
JTrotta opened this issue Sep 7, 2018 · 1 comment
Closed

RPI3 CPU 180% #68

JTrotta opened this issue Sep 7, 2018 · 1 comment

Comments

@JTrotta
Copy link

JTrotta commented Sep 7, 2018

Just testing the library with 2 port. The only ports opening consume 180%, opening 1 port 90%.
Version 2.1.4.0, and mono 5.14.0.177
Any hints?

EDIT: I recompiled the library without the pin PinChangeThread, and cpu is nomal now
//try { // m_MonitorPins = true; // m_PinThread = new Thread(new ThreadStart(PinChangeThread)); // m_PinThread.Name = "NSerPin_" + m_Name; // m_PinThread.IsBackground = true; // m_PinThread.Start(); //} catch { // m_PinThread = null; // m_MonitorPins = false; // throw; //}

@jcurl
Copy link
Owner

jcurl commented Sep 9, 2018

Yes, it's likely a duplicate to this: #22. I don't have an RPI3 to debug, as the fix itself must be in the libnserial library. I'll be closing this as a duplicate to that ticket. If you're capable, you can provide a patch, which I can integrate (and perhaps modify), after you test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants