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
M115 does not work on serial/USB #31
Comments
FYI, I just wanted to make it easier and more consistent to report what version is being tested against, and to rule out human error in the process. Came up with a workaround based off the currently loaded firmware binary if of interest:
|
@beikeland Nice idea. But I think when fetching the |
True story! Thanks, edited the post above to reflect your input. But parsing M115 would be less error prone, although my pi downloads and flashes any updates at boot, so if the file is at that location it is the one running on the duet. Think maybe it should try serial, http and fall back to the binary file if serial or http doesn't work. Runs this on boot, but it takes forever as it depletes the /dev/urandom entropy or something |
Also here is a version that runs on Arch Linux #!/usr/bin/env bash
pacman -Qs duet | grep "local/" | sed 's#local/##g' | tr ' ' =
FW=/opt/dsf/sd/sys/Duet3Firmware.bin
FWVERSION=$(strings "${FW}" | grep "version=" | cut -d= -f2)
FWDATE=$(strings "${FW}" | grep -B1 "FIRMWARE_DATE" | head -1)
echo "duet3firmware=${FWVERSION}@${FWDATE}" I also removed |
If you are running a regular RPi you should look into setting up
EDIT: just being a wise-guy here: |
The good thing about wise-guys is that it makes us non-wise guys less non-wise ;) Seriously, thanks for sharing! Did away with an awk as well, when all you have in your toolbox is a hammer, the scews feel the pain.. |
Since this is already waay off topic; simply installing rng-tools seems to have sorted the entropy deficiency on the pi, and its swiftly updated on boot flashing and notifying me as needed. Yay! Beats me why the rng-tools package isn't installed by default, but thats a topic for another place, thanks again! |
Still slightly unrelated to the actual issue, but think the serial and http part is sorted, should increase the odds of reporting the actual running firmware version |
Took me a while to get at actually testing the initial issue and I cannot reproduce it:
|
I think this has been fixed in a recent RRFv3 version. There was an error concerning emulation. |
Confirmed; works as of duet3_firmware=3.0b7-ch@2019-08-07b2 |
Wanted to grab the FW version from
M115
off the serial, but when sendingM115
the response isEmulation of unknown is not yet supported.
M115
works as expected in Web UI.The text was updated successfully, but these errors were encountered: