CPU issue is caused by serialport, used in p1-reader.
serialport/node-serialport#1583
Solution 1
Don't use /dev/serial1 or /dev/ttyAMA0.
Instead, add enable_uart=1 to /boot/config.txt and reboot.
Device /dev/serial0 will appear. It is wired to GPIO14 and 15.
This serial port is miniUART and have serious limitations (as one can find in net)
Solution 2 (maybe better)
If Bluetooth is not needed, add dtoverlay=pi3-disable-bt to /boot/config.txt and reboot. Now full UART /dev/ttyAMA0 is usable on GPIO14 and 15.
As OEHU is not using bluetooth, solution 2 is preferred. Tested and CPU usage is 1-4% while oehu-setup-api is running.
CPU issue is caused by serialport, used in p1-reader.
serialport/node-serialport#1583
Solution 1
Don't use /dev/serial1 or /dev/ttyAMA0.
Instead, add enable_uart=1 to /boot/config.txt and reboot.
Device /dev/serial0 will appear. It is wired to GPIO14 and 15.
This serial port is miniUART and have serious limitations (as one can find in net)
Solution 2 (maybe better)
If Bluetooth is not needed, add dtoverlay=pi3-disable-bt to /boot/config.txt and reboot. Now full UART /dev/ttyAMA0 is usable on GPIO14 and 15.
As OEHU is not using bluetooth, solution 2 is preferred. Tested and CPU usage is 1-4% while oehu-setup-api is running.