Skip to content

Memory leak in p1-reader #1

Description

@marijnbent

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions