Skip to content
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

Error initializing heightmap DueUI v3 - DWC V3.3 und 3.4 #3

Open
kgolger opened this issue Oct 15, 2021 · 12 comments
Open

Error initializing heightmap DueUI v3 - DWC V3.3 und 3.4 #3

kgolger opened this issue Oct 15, 2021 · 12 comments

Comments

@kgolger
Copy link

kgolger commented Oct 15, 2021

First of all, thank you very much for the implementation of the DueUI project. I am using DueUI in conjunction with my Duet2 Wifi and a Raspberry Pi4 with 7" Waveshare touchscreen. So far everything works stable - except the heightmap. The heightmap is not displayed graphically, as the following picture shows:

heightmap_not_present

The following error status is displayed:

type_error

3170

3097

Here is the constellation of the Duet2 Wifi board:

Board: Duet 2 WiFi (2WiFi)
Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.3 (2021-06-15)
Version von Duet WiFi Server: 1.26
Duet Web Control 3.4.0-b4 (have also tried it with V3.3 -> no luck).

heightmap.csv:

heightmap.csv

heightmap-DWC

Thank you for any support that could help me! If you need more data, please get in touch!

wbr,
Karl

@gtjoseph
Copy link
Owner

Hmmm. The heightmap.csv file looks different than expected. I wonder if format changed and I didn't notice.
I'll take a look tomorrow.

@gtjoseph
Copy link
Owner

Oh, I forgot to ask...can you attach your config.g file? I want to see how your axes are set up.

@kgolger
Copy link
Author

kgolger commented Oct 15, 2021

Thank you for the quick response. I suspect that the issue may be with the heightmap.csv. In the attachment you will find the heightmap.csv and the config.g data:

config_g_heightmap_csv.zip

wbr,
Karl

@gtjoseph
Copy link
Owner

It looks like RRF and DSF are out of sync.
RRF always writes the new format file while DSF writes the previous version.
The heightmap.csv file you posted looks like it was written in the latest version when you were running your Duet2 in standalone mode (without the DSF).

If you're running with the DSF, you can use either DueUI or the DWC to issue a M374 command which will cause the file to be written in the previous version. This should make it displayable in DueUI again in the short term.

I'm going though all the changes for 3.4 now and will make DueUI read both the new and old formats but that may take another week or so.

I'll leave this issue open until I get the real fix in.

Here's the post on the Duet forums I started to see if we can get the versions in sync.
https://forum.duet3d.com/topic/25566/heightmap-format-different-between-rrf-and-dsf

@kgolger
Copy link
Author

kgolger commented Oct 16, 2021

I'm working without Framework, using standalone mode.
Thank you very much for your efforts. I will wait until a solution is available.
However, I would be interested in the difference of the heightmap.csv v1 to v2. Do the changes only affect the program header, or is the content formatted differently?

wbr,
Karl

@gtjoseph
Copy link
Owner

The difference is in the header info. The actual measurements are in the same format.
The latest version (your printer):

RepRapFirmware height map file v2 generated at 2021-10-14 23:11, min error 0.003, max error 0.155, mean 0.103, deviation 0.038
axis0,axis1,min0,max0,min1,max1,radius,spacing0,spacing1,num0,num1
X,Y,20.00,220.00,28.00,188.00,-1.00,40.00,32.00,6,6

The previous version (my printer using DSF):

RepRapFirmware height map file v2 generated at 2020-04-09 16:49
xmin,xmax,ymin,ymax,radius,xspacing,yspacing,xnum,ynum
-235.00,235.00,-235.00,235.00,-1.00,23.50,23.50,21,21

I misread your first post and thought you were using the DSF. Sorry. Since you're not, I'll see if I can get a quick DueUI fix up tomorrow.

@kgolger
Copy link
Author

kgolger commented Oct 17, 2021

I have modified the heightmap.csv header manually:

RepRapFirmware height map file v2 generated at 2020-04-09 16:49
xmin,xmax,ymin,ymax,radius,xspacing,yspacing,xnum,ynum
20.00,220.00,28.00,188.00,-1.00,40.00,32.00,6,6

0.013, 0.085, 0.100, 0.100, 0.082, -0.033
0.020, 0.097, 0.107, 0.097, 0.092, -0.058
0.055, 0.085, 0.092, 0.087, 0.058, -0.025
0.087, 0.107, 0.087, 0.082, 0.077, -0.020
0.080, 0.107, 0.080, 0.072, 0.077, 0.020
0.060, 0.077, 0.065, 0.075, 0.082, 0.035

The result:

heightmap_csv_v1_standalone_dwc_v3 4

👍👍👍

So far everything is running now. I hope that the source data adaption will not be too time-consuming.

One question by the way: How to adjust the font sizes of the heightmap elements in config_default.json. The fonts look very small on a 7" LCD.

grafik

grafik

Thanks!

wbr,
Karl

@gtjoseph
Copy link
Owner

I just released v3.3.1 that has the fix for the new heightmap and also allows you to change the style of the different components of the heightmap widget.
https://github.com/gtjoseph/DueUI/releases/tag/v3.3.1
https://github.com/gtjoseph/DueUI/wiki/Heightmap

Let me know how it works.

@kgolger
Copy link
Author

kgolger commented Oct 17, 2021

Thank's for your efforts and the quick processing. I will check and report back in the next few days 👍

@kgolger
Copy link
Author

kgolger commented Oct 21, 2021

@gtjoseph:

Thanks again for the quick turnaround. Here some screenshots of my DueUI 3.3.1 (DWC 3.4) settings:

2021-10-22-012927_1280x1024_scrot_01

2021-10-22-012938_1280x1024_scrot_02

2021-10-22-012945_1280x1024_scrot_03

2021-10-22-013011_1280x1024_scrot_04

2021-10-22-013018_1280x1024_scrot_05

wbr,
Karl

@gtjoseph
Copy link
Owner

Very Nice! Would you be OK with me copying the screenshots into the wiki as an example setup? It wold also be cool if you posted your setup in the Share your DueUI configuration! forum thread with your json config.

All optional of course. I'd understand if you didn't wish to share.

@kgolger
Copy link
Author

kgolger commented Oct 22, 2021

No problem!
I'm pleased to do so, of course! I made some changes in dueui_config_default.json and dueui_bundle.js. I've germified the text, but can be changed very easily to another language in the config. I will publish the data here (https://forum.duet3d.com/topic/14835/share-your-dueui-configuration). What does not work 100% yet is loading the mainpage (dueui.html). It can happen that you have to refresh the page 1 or 2 times, because fonts and background are not loaded correctly, both with chromium and firefox-esr.
System: Pi4 B
Description: Raspbian GNU/Linux 10 (buster)
Kernel: 5.10.60-v7l+
Touchscreen:
Waveshare H 7" (https://www.waveshare.com/7inch-hdmi-lcd-h-with-case.htm)
Duet2 Wifi, DWC V3.4 RC4, DueUi V3.3.1

init_ok
(ok)

wrong_init
(refresh needed)

wbr,
Karl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants