Forum Replies Created

Viewing 15 posts - 271 through 285 (of 357 total)
  • Author
    Posts
  • in reply to: Cannot establish communication durting setup #1170
    harrison
    Keymaster

    Hello Yzhang,

    Did you ever get it to communicate with the Control Computer via Putty? If not – then my best guess would be that you haven’t got appropriate drivers for the Beaglebone Black on your PC. The Beaglebone itself is an off-the-shelf part, so if you cannot communicate to that either it is a driver issue, or (perhaps, but seems very unlikely) the Beaglebone has a manufacturing fault.
    Can you get it to connect on a different PC?

    harrison
    Keymaster

    I just saw the second post – it is suspicious that you can’t see the multiplexer on the I2Cdetect command.
    Could you try running the I2cdetect commands again, and afterward execute the command “dmesg” in the linux terminal, and then copy here the bottom 10 lines? This will ideally tell us whether it is having I2C communication faults, or something stranger is happening…

    harrison
    Keymaster

    Dear Wilson,

    It seems unlikely it could be down to the software since as you said you tried several versions.
    Perhaps the Beaglebone is at fault, but this does seem unlikely.
    Do you have an oscilloscope by any chance? To test this the ideal method would be to look at the I2C bus under a scope and check that it is sending data as you expect.

    When you run the test above is there any reactor connected? If yes – what happens if you disconnect all reactors from the beaglebone control board?

    Harrison

    in reply to: Setup.sh cannot find all the packages #1164
    harrison
    Keymaster

    Great!
    There is also a new software guide on the website which means you don’t even need to download any packages – it comes with them all included.

    in reply to: Light source piece burnt #1156
    harrison
    Keymaster

    Hi Matt,
    Sorry to hear you are having these issues – from the description of the causes leading up to it this sounds like there may have been some significant hardware faults in that reactor. Whatever was wrong with it eventually led to a short in the circuit controlling the Blue LED (which incidentally is the most powerful of them) and now it is permanently on at maximum power (higher than intended by the software!)
    I’d recommend getting in touch with Labmaker to tell them it came with a hardware fault and ask if they can replace it…

    in reply to: Frequent connection errors and communication failures #1141
    harrison
    Keymaster

    Thanks! 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…

    in reply to: Frequent connection errors and communication failures #1139
    harrison
    Keymaster

    Note 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…

    in reply to: Frequent connection errors and communication failures #1138
    harrison
    Keymaster

    Thanks – 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...

    in reply to: Frequent connection errors and communication failures #1135
    harrison
    Keymaster

    I’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.

    in reply to: Frequent connection errors and communication failures #1134
    harrison
    Keymaster

    Then 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.

    in reply to: Frequent connection errors and communication failures #1133
    harrison
    Keymaster

    Hmm, I am surprised by this. That fix completely removed the issue when I could replicate it on our end.
    So to confirm, you are still seeing messages like:
    2021-03-03 03:37:24.318060 Failed Pumps comms 1 times on device M2
    2021-03-03 03:37:26.367069 Failed Pumps comms 2 times on device M2
    Namely – I am interested in the fact that it is happening twice in succession and almost exactly 2 seconds apart?

    To diagnose your issue, could you go to line 1413 (after the line that says tries=tries+1) in app.py and insert the following command:

    print(str(datetime.now()) + ‘ Failed with rw = ‘ + str(rw) + ‘ hl = ‘ + str(hl) + ” data1 = ” + str(data1) + ” data2 = ” + str(data2))

    I want to see exactly what transmission it is trying to make when it fails…

    in reply to: Pump rate #1114
    harrison
    Keymaster

    Hi Nobuhiro,
    I came across a similar error to this and figured out a fix to hopefully catch these issues – check out the new version of app.py on the Github.
    Harrison

    in reply to: Frequent connection errors and communication failures #1113
    harrison
    Keymaster

    Hey both – I just made a change on the operating system (see the Github). If you copy the new python file (app.py) across to your device the issue should be resolved (you don’t even need to worry about chaning the Debian OS version!).
    Harrison

    in reply to: Frequent connection errors and communication failures #1112
    harrison
    Keymaster

    Note to do this you would need to run through the software installation instructions available on this site – you flash it with the new operating system then run the Chi.Bio setup script again.

    in reply to: Frequent connection errors and communication failures #1111
    harrison
    Keymaster

    OK – could you try rolling back the debian operating system to version 10.0? I think this download link should work:
    https://debian.beagleboard.org/images/bone-eMMC-flasher-debian-10.0-iot-armhf-2019-07-07-4gb.img.xz

    It seems many of the errors come from the way the updated operating system is handling I2C commands. In my lab we are running them all on Debian 10.0 and no issues – but the latest version (probably which you have installed) is 10.4 and this acn cause strife!

Viewing 15 posts - 271 through 285 (of 357 total)
Log in/Register
Scroll to top