Skip to content

Lowering polling rate of EvoThermal halts program #14

Description

@Vabe7

Hello,

I've noticed a problem with the python sample code for EvoThermal: Evo Thermal Sample Code.

If I reduce the rate at which the function get_thermals gets called, the program halts after roughly 5 seconds because it gets stuck here: https://github.com/Terabee/sample_codes/blob/a58676f5e7fec1dfcacc5269515b3ef069b01ec7/Python/Evo_Thermal_sample_py3.py#L45C16-L45C43

Hardware used:

  • Raspberry Pi 3
  • Evo Thermal 90 with USB backboard

Steps to reproduce:
Add a delay in: https://github.com/Terabee/sample_codes/blob/a58676f5e7fec1dfcacc5269515b3ef069b01ec7/Python/Evo_Thermal_sample_py3.py#L95C1-L98C21
Like:
time.sleep(0.5)
I found that it starts getting unreliable at 0.5 seconds.

Since the time until it fails is similar even with different delays, I assume it has something to do with the serial buffer. But flushing the input buffer before reading the port resulted in no difference.

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