- This topic has 23 replies, 3 voices, and was last updated 4 years, 1 month ago by
harrison.
-
AuthorPosts
-
April 1, 2021 at 8:42 am #1134
harrison
KeymasterThen please run a similar test to before – basically just turn the pumps off and on a load of times and copy across the PuTTY log here.
April 1, 2021 at 6:12 pm #1135harrison
KeymasterI’ve been again trying to replicate this today – I have made another small change on the Github to try to remedy one failure mode I observed, let me know how that goes for you.
April 3, 2021 at 9:57 pm #1136mattkratz
ParticipantHey Harrison, finally got around to testing your new app.py (got my 2nd vaccine dose and had to take a couple days off). Seems to be working properly, with constant turning on and off of pumps not producing any errors. I also did a quick run where it automatically manipulates the pumps and it still seems to be running well. I’m gonna let it run over night to test it a bit more.
April 5, 2021 at 12:28 am #1137mattkratz
ParticipantHey Harrison, false alarm, I’m still getting the same error (tandem pump comm failures, separated by 2s) albeit at a much lower frequency, once every 1-2 hours instead of once every 5 minutes. I’m running the same app.py with your debug line right now and will update you ASAP.
April 5, 2021 at 12:16 pm #1138harrison
KeymasterThanks – so, it is better, but not perfect! My next fix is a nuclear one: Build a new Linux Kernel with changes in the hardware drivers so that the two second failure is reduced to ~<0.1 seconds, hence making little impact on an experiment. I'm working on this now, will let you know once I have it up and running. It will mean flashing the board with a new operating system that implements such fixes...
April 5, 2021 at 12:17 pm #1139harrison
KeymasterNote that this will not make the error message go away entirely – rather, it will help the system recover quickly when there are errors hence minimising their impact…
April 5, 2021 at 7:53 pm #1140mattkratz
ParticipantHey Harrison, here’s the terminal output of the debug run. Experiment starts at 17:17 in the 2nd panel, previous stuff is just process starting up.
April 6, 2021 at 4:21 pm #1141harrison
KeymasterThanks! That is about what was expected.
Here is a Linux image:
https://www.dropbox.com/s/kvk55gfz88z6u5g/ChiBio-OS-2021-04-06.img.xz?dl=0
From my tests this new version will solve these issues by changing the 2 second timeout to be ~50ms, hence the occasional pump comms failure would not have much of an impact on operation.To put it on your device you can use the same process as in the software setup guide (which i will update soon): Use Balenaetcher to flash the image to a micro-SD card, then put this into the beaglebone. It will then flash the memory on the beaglebone. Then you are done! In this case the image should include the entire Chi.Bio config including the operating code for the device.
Note that this will wipe any experimental data or other changes you have on your device so copy anything you want to keep off it first…
-
AuthorPosts
- You must be logged in to reply to this topic.