2021-02-14, 11:20 AM
I also have the high CPU usage problem, although the
fix was already applied in my case, looking at pigpio.seatalk.js
I am using the GPIO app in Openplotter, made a connection using gpio6. Then, then the app created a connection in SignalK.
After rebooting the high CPU usage came. When looking with htop I get:
Strange thing is, I configured gpio6 in the app, but gpio4 is mentioned in the code above. Not sure what that means, looking at the code I can see if no gpio is set, gpio4 will be used as a default. Also worth mentioning is, I have no physical devices connected yet so there is no data stream. Only configured the software.
For the time being I've disabled 1w, and removed the connections from the gpio app and signalk.
Now my CPU has returned to normal.
I though the time.sleep would fix the problem, but seeing this was already part of my code it apparently does not in my case.
Hope someone can help me.
Code:
time.sleep(0.01)
I am using the GPIO app in Openplotter, made a connection using gpio6. Then, then the app created a connection in SignalK.
After rebooting the high CPU usage came. When looking with htop I get:
Strange thing is, I configured gpio6 in the app, but gpio4 is mentioned in the code above. Not sure what that means, looking at the code I can see if no gpio is set, gpio4 will be used as a default. Also worth mentioning is, I have no physical devices connected yet so there is no data stream. Only configured the software.
For the time being I've disabled 1w, and removed the connections from the gpio app and signalk.
Now my CPU has returned to normal.
I though the time.sleep would fix the problem, but seeing this was already part of my code it apparently does not in my case.
Hope someone can help me.