Most "fellas" interested in Rigol's DHO 800/900/1k/4k may have followed
the other thread about the broken FlatTop FFT window function. I wrote a small basic (yes, really!
) program that calculates the correct window file -- the windows executable is attached. Here's how to replace the broken file:
You need to have the ADB toolkit downloaded on your PC and the simplest way is to have the newly generated window file placed in the same directory.
adb connect [your scope's IP address]:55555
adb push flatTop_1048576.hex /rigol/resource/window/
Edit: just checked - the following steps aren't required for the patch to work
I'm not sure if the file mode flags, owner and group are relevant but I changed them anyway so they match the other window files. Attention: After issueing the "su" command, you can do real harm in the scope's file system!
adb shell
su
cd /rigol/resource/window
ls -l
Now make sure the pushed window file is there, it should look somewhat like this:
rk3399_rigol:/rigol/resource/window # ls -l
total 40960
-rwxrwxrwx 1 root root 4194304 2023-11-26 11:14 blackmanWin_1048576.hex
-rw-rw-rw- 1 shell shell 4194304 2023-12-04 04:11 flatTop_1048576.hex
-rwxrwxrwx 1 root root 4194304 2023-11-26 11:14 hammingWin_1048576.hex
-rwxrwxrwx 1 root root 4194304 2023-11-26 11:14 hanning_1048576.hex
-rwxrwxrwx 1 root root 4194304 2023-11-26 11:14 triangle_1048576.hex
rk3399_rigol:/rigol/resource/window #
Now change the properties:
chmod a+x flatTop_1048576.hex
chown root flatTop_1048576.hex
chgrp root flatTop_1048576.hex
ls -l
And check that the changes took effect:
rk3399_rigol:/rigol/resource/window # ls -l
total 40960
-rwxrwxrwx 1 root root 4194304 2023-11-26 11:14 blackmanWin_1048576.hex
-rwxrwxrwx 1 root root 4194304 2023-12-04 04:11 flatTop_1048576.hex
-rwxrwxrwx 1 root root 4194304 2023-11-26 11:14 hammingWin_1048576.hex
-rwxrwxrwx 1 root root 4194304 2023-11-26 11:14 hanning_1048576.hex
-rwxrwxrwx 1 root root 4194304 2023-11-26 11:14 triangle_1048576.hex
rk3399_rigol:/rigol/resource/window #
To close the session type:
sync
reboot
Now your scope should restart and activate the new FFT FlatTop window file.
This step-by-step walkthrough was probably "Kindergarten" for many but it may help those who never ever typed on a unix terminal...