Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lowering polling rate of EvoThermal halts program #14

Open
Vabe7 opened this issue Jul 14, 2023 · 0 comments
Open

Lowering polling rate of EvoThermal halts program #14

Vabe7 opened this issue Jul 14, 2023 · 0 comments

Comments

@Vabe7
Copy link

Vabe7 commented Jul 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant