Bedvisualizer and Snapmaker 2.0

Hello Makers and HAPPY NEW YEAR,

Im new here at the forum, and working with octoprint and a Snapmaker 2.0 A350 for severl month - great piece of software!
But I could not get the plugin BV to work. It nothing shows me more than a green mesh when i call the plugin, and when its startet it does what it should, goes trough the mesh but then it stays in the staus retrieving mesh and stays there..

Many people at snapmakerforum use this code in the plugin and report it works.
Can you guys here perhaps point me in the right direction whats going wrong?

M420 V ;get data
G1029 A ;leveling
G1029 S ;save data
G1029 D0 ;end leveling
M420 V ;get recent data
G28

what can I do at this point?

1 Like

Hello @stefix!

Are you sure about the gcode G1029?

It may be G29:

Yes, @Ewald_Ikemann the code is working, but BV stays saying retrieving mesh after the last G28 im fiddeling around with it for some weeks, and Snapmaker guys told me only a M420 V should almost show the mesh. But in my case the printer does what he should goes thrue every command (visibly in the terminal) and I supose it misses something. (something dumb or weirder)

By the way I have seen a TV programm that comes from your town, its called Tatort
Just kidding I live in Paderborn so thats not so far!

Have a nice evening

Stefan

Yes, so if the printer responds to the M420 V command like it does with UBL, then that should work fine. The plugin expects an ok to be received at the end of the command, so what does M420 V report back when you run it from the terminal tab?

I'm also curious what that command M420 V reports after G1029 (assuming that's right) and then again after running G28. It almost sounds like the mesh data is getting cleared with the G28 possibly. Marlin has a setting RESTORE_LEVELING_AFTER_G28 or something like that.

This is what M420V reports in Terminal:

Send: M420V
Recv: Bilinear Leveling Grid:
Recv:       0      1      2      3      4
Recv:  0 +11.079 +11.336 +11.591 +11.880 +12.251
Recv:  1 +11.130 +11.377 +11.649 +11.926 +12.320
Recv:  2 +10.987 +11.266 +11.605 +11.920 +12.320
Recv:  3 +10.957 +11.309 +11.639 +12.000 +12.419
Recv:  4 +10.981 +11.297 +11.632 +12.005 +12.449
Recv: 
Recv: Subdivided with CATMULL ROM Leveling Grid:
Recv:         0        1        2        3        4        5        6        7        8        9       10       11       12
Recv:  0 +11.07875 +11.16467 +11.25060 +11.33625 +11.42018 +11.50384 +11.59125 +11.68194 +11.77639 +11.88000 +11.99764 +12.12444 +12.25125
Recv:  1 +11.10301 +11.18700 +11.27100 +11.35565 +11.44047 +11.52595 +11.61417 +11.70317 +11.79492 +11.89736 +12.01669 +12.14670 +12.27671
Recv:  2 +11.12727 +11.20933 +11.29140 +11.37504 +11.46076 +11.54805 +11.63708 +11.72440 +11.81346 +11.91472 +12.03574 +12.16896 +12.30217
Recv:  3 +11.13000 +11.21162 +11.29324 +11.37750 +11.46592 +11.55699 +11.64875 +11.73648 +11.82491 +11.92625 +12.04889 +12.18444 +12.32000
Recv:  4 +11.09268 +11.17567 +11.25865 +11.34602 +11.44094 +11.54024 +11.63879 +11.73055 +11.82157 +11.92486 +12.04886 +12.18515 +12.32143
Recv:  5 +11.03384 +11.11967 +11.20551 +11.29759 +11.40083 +11.51032 +11.61759 +11.71547 +11.81113 +11.91764 +12.04294 +12.17908 +12.31523
Recv:  6 +10.98750 +11.07819 +11.16889 +11.26625 +11.37560 +11.49162 +11.60500 +11.70861 +11.80958 +11.92000 +12.04703 +12.18352 +12.32000
Recv:  7 +10.96717 +11.06708 +11.16698 +11.27102 +11.38229 +11.49769 +11.61199 +11.72034 +11.82758 +11.94305 +12.07260 +12.21037 +12.34815
Recv:  8 +10.95935 +11.07048 +11.18160 +11.29287 +11.40386 +11.51498 +11.62759 +11.74028 +11.85446 +11.97569 +12.10818 +12.24772 +12.38727
Recv:  9 +10.95750 +11.07537 +11.19324 +11.30875 +11.41916 +11.52722 +11.63875 +11.75472 +11.87416 +12.00000 +12.13532 +12.27703 +12.41875
Recv: 10 +10.96143 +11.07791 +11.19438 +11.30898 +11.41908 +11.52730 +11.63963 +11.75724 +11.87895 +12.00722 +12.14506 +12.28945 +12.43384
Recv: 11 +10.97134 +11.08194 +11.19254 +11.30324 +11.41273 +11.52233 +11.63606 +11.75424 +11.87656 +12.00611 +12.14634 +12.29382 +12.44129
Recv: 12 +10.98125 +11.08597 +11.19069 +11.29750 +11.40639 +11.51736 +11.63250 +11.75125 +11.87416 +12.00500 +12.14764 +12.29819 +12.44875
Recv: 
Recv: leveling OFF
Recv: echo:Bed Leveling OFF
Recv: echo:Fade Height OFF
Recv: ok

Seem ok for me, what do you think about?

It might be confused because there are actually two mesh grids, don't know if the plugin can account for that. If it can, then cool, maybe not. You can enable debug logging in the tab of the plugin, then try mesh collection again.

It should be able to handle it. I think you need to to enable the option to remove row labels, and also all your points are real high, so you might want to also enable Use Relative Z Offsets.

@Charlie_Powell The debug log says:

[2021-01-03 19:06:31,309] DEBUG: mesh collection started
[2021-01-03 19:06:31,381] DEBUG: resetting mesh to blank because of CATMULL subdivision

Do you know the meaning?

I am confused about other with the same machine use this settings and they report works!

I will see if I can a output from them

@jneilliii Have tried your suggestion but it changes nothig.

well, share your whole log for me and I can know better of what's happening.

post it tomorrow thanks alot

have it:

[2021-01-03 19:06:31,309] DEBUG: mesh collection started
[2021-01-03 19:06:31,381] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 19:08:39,333] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 19:08:39,412] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 19:32:45,046] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 19:36:31,316] DEBUG: Canceling mesh collection per user request
[2021-01-03 19:36:31,316] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 19:36:31,316] DEBUG: []
[2021-01-03 19:36:31,316] DEBUG: Mesh data after clearing:
[2021-01-03 19:36:31,316] DEBUG: []
[2021-01-03 20:42:09,930] DEBUG: mesh collection started
[2021-01-03 20:42:10,007] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 20:44:55,664] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 20:44:55,744] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 20:57:00,400] DEBUG: Canceling mesh collection per user request
[2021-01-03 20:57:00,401] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 20:57:00,401] DEBUG: []
[2021-01-03 20:57:00,401] DEBUG: Mesh data after clearing:
[2021-01-03 20:57:00,401] DEBUG: []
[2021-01-03 21:05:26,946] DEBUG: mesh collection started
[2021-01-03 21:05:27,006] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:07:32,611] DEBUG: Canceling mesh collection per user request
[2021-01-03 21:07:32,611] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 21:07:32,612] DEBUG: []
[2021-01-03 21:07:32,612] DEBUG: Mesh data after clearing:
[2021-01-03 21:07:32,612] DEBUG: []
[2021-01-03 21:13:16,165] DEBUG: mesh collection started
[2021-01-03 21:13:16,221] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:13:16,520] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:13:16,736] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:13:36,306] DEBUG: Canceling mesh collection per user request
[2021-01-03 21:13:36,306] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 21:13:36,307] DEBUG: []
[2021-01-03 21:13:36,307] DEBUG: Mesh data after clearing:
[2021-01-03 21:13:36,307] DEBUG: []
[2021-01-03 21:14:59,447] DEBUG: mesh collection started
[2021-01-03 21:14:59,534] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:14:59,936] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:15:00,151] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:16:34,169] DEBUG: Canceling mesh collection per user request
[2021-01-03 21:16:34,170] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 21:16:34,170] DEBUG: []
[2021-01-03 21:16:34,170] DEBUG: Mesh data after clearing:
[2021-01-03 21:16:34,171] DEBUG: []
[2021-01-03 21:16:47,580] DEBUG: Canceling mesh collection per user request
[2021-01-03 21:16:47,580] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 21:16:47,580] DEBUG: []
[2021-01-03 21:16:47,581] DEBUG: Mesh data after clearing:
[2021-01-03 21:16:47,581] DEBUG: []
[2021-01-03 21:17:16,661] DEBUG: mesh collection started
[2021-01-03 21:17:16,767] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:17:17,139] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:17:17,345] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:18:33,688] DEBUG: Canceling mesh collection per user request
[2021-01-03 21:18:33,688] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 21:18:33,689] DEBUG: []
[2021-01-03 21:18:33,689] DEBUG: Mesh data after clearing:
[2021-01-03 21:18:33,689] DEBUG: []
[2021-01-03 21:18:38,539] DEBUG: mesh collection started
[2021-01-03 21:18:38,631] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:22:56,809] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:22:57,004] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 21:23:52,078] DEBUG: Canceling mesh collection per user request
[2021-01-03 21:23:52,078] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 21:23:52,078] DEBUG: []
[2021-01-03 21:23:52,079] DEBUG: Mesh data after clearing:
[2021-01-03 21:23:52,079] DEBUG: []
[2021-01-03 21:41:46,403] DEBUG: Canceling mesh collection per user request
[2021-01-03 21:41:46,403] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 21:41:46,404] DEBUG: []
[2021-01-03 21:41:46,404] DEBUG: Mesh data after clearing:
[2021-01-03 21:41:46,404] DEBUG: []
[2021-01-03 21:42:13,394] DEBUG: Canceling mesh collection per user request
[2021-01-03 21:42:13,395] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 21:42:13,395] DEBUG: []
[2021-01-03 21:42:13,395] DEBUG: Mesh data after clearing:
[2021-01-03 21:42:13,395] DEBUG: []
[2021-01-03 22:01:53,949] DEBUG: mesh collection started
[2021-01-03 22:01:54,041] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 22:06:12,009] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 22:06:12,213] DEBUG: resetting mesh to blank because of CATMULL subdivision
[2021-01-03 22:06:29,562] DEBUG: Canceling mesh collection per user request
[2021-01-03 22:06:29,563] DEBUG: Mesh data collected prior to cancel:
[2021-01-03 22:06:29,564] DEBUG: []
[2021-01-03 22:06:29,564] DEBUG: Mesh data after clearing:
[2021-01-03 22:06:29,564] DEBUG: []

there is nothing other in there, shoud it be more, is it the right logfile?

An other snapmaker form member figured this out.

Snapmaker Forum

look at the last posts only

Yep, that would be it. The regex pattern needs to be updated to support more than single first digit on the points. I'll add an issue on the repo to track that. Thanks for sending that over.

If you're running OctoPrint 1.5.2 you can switch the plugin to release candidate in the software update settings and you should get a fixed version that will work for you. If not you can copy/paste the URL below into Plugin Manager > Get More > ...from URL and click Install.

https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/1.0.1rc1.zip
2 Likes

Thanks a lot for you great work, the plugin is very important on a 320 x 320 Printbed.
It works now perfectly!

Keep alive and kicking :mask:

Thanks for confirming, and please also thank the person on snapmaker forum for the pointer.