Nah - only dipped my toe into RasPi due to this Moteino project. I've only used Arduino Uno and Teensy otherwise.
I'm going to try running the following code
from this post to see what process is hogging the CPU
And run analysis with
node --prof-process generated_tick_file.log
Late Night EDIT:
*sigh* the title of this thread is about right - "
Dummy" indeed...
Found that the opening of the serial port from the PI side to the MighyHat (in my case to upload the internet speed data) is what's causing the PI to 'go nuts' with CPU and memory.
Careful watching of the 'top' interface helped confirm the issue. I was able to run the gateway as above and then kicked off the internet download process. I watched the CPU spike immediately after.
So, that's being turned off as of
right now and I'll hang on patiently for Felix to get around to looking how to do it his way.
I tried to edit the original post to recommend not to do it, but I can no longer edit the old post. I've reported it to the moderator to add a flag to not to use the suggested code.
I let the capture process run for 5mins in thrashing with high temp before terminating it. I've also attached the node analysis of the gateway.js in case Felix finds any useful information in it for future queries from dummies like me.