AccelerationConsortium / ac-training-lab

Codebase for controlling and managing the Acceleration Consortium (AC) Training Lab.
https://ac-training-lab.readthedocs.io/
MIT License
8 stars 2 forks source link

Fan control web app not communicating #40

Open sgbaird opened 2 months ago

sgbaird commented 2 months ago

Probably some issue with the Pico wireless. Maybe I need some more robust communication code.

In particular, writing the error might be necessary since it was originally working.

Right now it's powered and fan is running. I'll hard reset it and check to see if that resolves it.

PXL_20240916_161911907.jpg

EDIT: seems ok for now (2024-09-17)

sgbaird commented 1 month ago

Restarted, and it's still been disconnecting. It seems to work for a bit but then cuts out after ~20 seconds. Implementing error logging for each of the devices would probably make sense.

https://huggingface.co/spaces/AccelerationConsortium/fan-control

Aside: I should also probably check to see if there's an issue with sending commands from two instances of the web app.

sgbaird commented 1 month ago

Try watchdog timer (suggested on Reddit):

https://docs.micropython.org/en/latest/library/machine.WDT.html