Measure_linear_vibrations_range ERROR!
was doing some testing....
Tests ran fine, and generated three graphs in the /home/pi/printer_data/config/linear_vibration folder
peak_frequencies_logscale2023-03-15T10:54:15.207785.png
peak_frequencies2023-03-15T10:54:15.207744.png
relative_power2023-03-15T10:54:14.725170.png
Then the machine reset with an error see attached klippy log c-a-p (attached here)
printer.cfg section was simply
and there are three files there in that directory as listed above.
This is RO v2 on a VC500. Test appeared to (mechanically) run fine. I'm not sure why it would come up with the typical orange text system error...fix and reset screen (parts cooling fan sent to full power etc needing a reboot to continue)
anyone run into this? or is the 'range' test not functional under R) v2?
84 Replies
Your adxl345 isn't responding
try ACCELEROMETER_QUERY
accelerometer values (x, y, z): -296.082377, -666.185348, 10955.165621
isn't ther a noice test?
noise
MEASURE_AXES_NOISE
Axes noise for xy-axis accelerometer: 15.192091 (x), 15.945923 (y), 24.867745 (z)
Nothing wrong there
as previously mentioned...test ran then messed up at the end. Is it three, or four graphs?
Is it possible it lost connection midway? Is the wire/connectors properly secured etc?
perhaps a spot of hot glue on the connector
But the error in your klipper.log says "gcode.CommandError: Unable to obtain 'adxl345_status' response"
(to make sure is stays connected)
Internal error on command:"MEASURE_LINEAR_VIBRATIONS_RANGE"
1:15 PM
Klipper state: Shutdown
1:15 PM
output written to /home/pi/printer_data/config/linear_vibration/peak_frequencies_logscale2023-03-15T13:15:14.278438.png
1:15 PM
output written to /home/pi/printer_data/config/linear_vibration/peak_frequencies2023-03-15T13:15:14.278397.png
1:15 PM
output written to /home/pi/printer_data/config/linear_vibration/relative_power2023-03-15T13:15:13.818979.png
``````
basically the same as before. Three new files,then errors
possible .py file corruption?
There's nothing wrong with the .py file then the parser would error out. This here is an adxl345_status error, as in, it can't query your adxl345. Not sure why. It's not impossible it's a bug, but it doesn't look that way. @MarschallMarc any ideas?
does seem odd as the first three run just fine
indeed
data query anyway... perhaps a faulty ADXL? status query not working vs data query
but you'd think it would query completion status between runs
There's another thread here with a guy reporting the exact same problem
saw that
So it's probably a bug 😄
crap.
Yeah we'd need to wait for upstream fixes from @MarschallMarc
surprised noone else has hit it. Wahts the diff in the single run vs this 'range' run
I believe i promised him to run it on my machine, but i didn't do that yet
https://github.com/worksasintended/klipper_linear_movement_analysis it's documented here
GitHub
GitHub - worksasintended/klipper_linear_movement_analysis
Contribute to worksasintended/klipper_linear_movement_analysis development by creating an account on GitHub.
...t'was where I started 🙂
I remembered though you'd incorporated it in V2
let go run the 'single' and see what it does
will have to check my wires/chip
I didn't check it with the latest klipper updates, so might be sth going on there
Promised might be too strong, but you agreed to do it 😋
That one however is not related to my stuff, I think
It basically sais what is happening
wires all good.... ran single ..got the error above.... re-ran 'range' and it repeated as first proposed in this thread
This can also be when it errors out. It doesnt handle it well that we lock the device but don't release it on error
I cannot read the file on my mobile rn, but I will see if there is an earlier error happening
full log...should show all attempt errors ( single vibe and range vibe attempts
Klipper really needs a mode where it does less logging...
Every freaking second full status report is insane
yep the mcu updates are nuts
Its an error with the plot in matplotlib
Invalid axis z
wow
Yep, line 422
Which is caused by different versions of matplotlib between what was installed when I developed it and which is installed now
Easy fix though
@miklschmidt
#debuggingCodeUsingASmartPhoneButWhy
What do? 😄
Well, basically just read the matplotlib docu and correct the plot command. It was the py2 vs py3 thingy here...
its just a command to set the ticklables thats going rouge
In my next life I will learn to use the answer button, I swear
the plot command? so a change to the plugin? that requires commit access to your repository 😄
I will just do it
Very nice! 😄
so ppl can also just use the update button and its ok
indeed
just need to setup a new klipper pi quickly to test before release 😛
just updated Klipper now a different error!
klippy.log
x homed and it just stopped. Now neither single nor range run
perhaps your wiring has gone loose? It happened to me, after all the high speed movements the wires near my soldering had stress cracked and broken off
just finished ohming out my harness...tugged and wiggled...no breaks good continuity .
Rebooted (full power down/power up)
Homed all axis
ran MEASURE_AXES_NOISE just to test. All was well.
Ran measure_linear_vibrations axis=x vmin=50 vmax=300 step=25 No error this time, but it only wrote one file. The final multi spike graph that it was not running before. Carriage only made one pass
repeated the entire routine...same thing. Now it only runs one X axis move and prints one graph
klippy log shortened to just the last reboot see attached.
making litle to no sense as all this worked. I was getting 3 graphs, then would F up on the fourth. Now I'm only getting the four
just ran the 'range'
only wrote three files
@miklschmidt Q? an 'update' would over-write any possible bad *.py file is included in an update correct? Just wondering if i have a bad TF card or something else is going on.
belt tension, adxl noise test and input shaper all work just fine. It's just the linear vibration stuff that is a no-go. I saw the Klipper update, but didn't seem to change anything.
or--- am I jumping the gun...updates/corrections still in process?
yes. You don't have bad python files though, it wouldn't make it as far as it does. Like marc said there's a bug in the linear vibration plugin, he will fix it.
tnx...guees that was what i was wondering..the most recent (earlier this afternoon) Klpper update was not/did not include the fix.
No, like i said it's a plugin
You can see it in the update manager
👍
There'll be an update to this as soon as marc gets it done. That'll fix it.
Yep, but the wrong ID thingy I am pretty sure does not come from my plugin. That's hardware related
that's been straightened out at this end. After testing the wiring for faults, I'd plugged it back in wrong. Belt tension, adxl noise, input shaper all work properly , so i'm comfortable the ADXL itself is fine. thanks for your attention to all this MM !
I hate plugs that allow you to plug them in wrong
instead of duponts, I've recently considered flyleading a XL or PH connector to that ADXL board for that very reason as I usually pull back those wires to reduce umbilical weight when the ADXL is not needed
I use JST-XH on all of mine
hehe one of many stacks....
any progress on fixing this plug-in?
bump?
Is this RO v2 included asset being fixed? or is it a dead effort? I see on github, a few others have seen this issue as well (fortuh graph does not run)
@MarschallMarc
Its on my this weeks todo list
Thanks for the update!
If confirmation was needed, I'm being bitten by the same issue too
Fixed
Thanks, will test tonight 🙂
just updated....it all works now thanks for the efforts @Marschall Marc
More to come with that one. A few ideas brewing 😛
genetic-orange•2y ago
hello marc, there are also instructions on how to interpret the graphs
Adding a few features within the next 2 to 3 weeks, after that I will do that.
but to be honest, on some things we will learn over time seing more data over time as well 😄
@Marschall Marc @miklschmidt I'm trying to use measure_linear_vibrations_range (mlvr) with the current updated ratos 2.1 rc. After the command writes 3 graph images, klipper shuts down. The 3d plot shown in the klipper_linear_movement_analysis (klma) readme is not generated. I've tried both main and development branches of klma, same behaviour. Please let me know if you'd rather see this as a separate issue. It appears to originate with this exception (klma development branch):
I cannot verify the issue, as I am away from printers for a couple of more days at least. It looks like the plot fails, because the data are not as the plot function expects them.
It is possible that the latest klipper version is not compatible, I did not track the changes.
If generating the graphs for IS still works as expected, it very well may be an issue with klma (never saw this acronym before :P). However, I cannot imagine this being a hard fix, if it is the case. There is not much complexity to it
Thanks for the prompt reply! Other graphs (regular klipper ones and klippain shake tune) work as expected. I might try to comment out the offending graph generation for now - I am a coder, but not python and notably I don't have domain familiarity.
Kinda-fixed/fudged by me in https://github.com/tg73/klipper_linear_movement_analysis/tree/fix-np. The 3d chart is now generated but lacks colour per velocity. But it doesn't crash. Just a sticking plaster applied dumbly without understanding the consequences.
Thanks. I will have a look, I would prefer to not lose features on PR though.
To be perfectly honest, I almost remember nothing about the implementation :kekw: