-
#225 Reply
Posted by
Poogo
on 08 Jul, 2021 13:08
-
I agree with that. I checked this, really the pinout is similar to GW2, not GW1 ... and you scared me )) ... I reduced it to 1.15v. CPU - 704 MHz, RAM - 360 MHz.
Device Id: 00000000000000000000100000011011 (0x0000081B) = GW2A(R)-18
-
#226 Reply
Posted by
DavidAlfa
on 08 Jul, 2021 14:55
-
You're right, I missed that entry when checking the IDs!
It might be a normal version then?
-
#227 Reply
Posted by
Poogo
on 08 Jul, 2021 15:45
-
-
#228 Reply
Posted by
H2Nut
on 10 Jul, 2021 18:41
-
Great find Poogo!

The FPGA GW2AR18 costs less than €10 on Taobao!
-
#229 Reply
Posted by
Poogo
on 11 Jul, 2021 19:28
-
A couple of observations: I parsed dso3kb_20210630_auto_update_fpga.upk and analyzed the do_update.sh file. The tp-adc.ko driver is installed first, then \dso\app\adc_test application is started.
Ghidra adc_test main section translated code:
undefined4 main(void)
{
int local_10;
int local_c;
local_c = open("/dev/tp_adc",2);
if (local_c < 1) {
puts("open adc device error!");
}
else {
sleep(1);
local_10 = 0;
read(local_c,&local_10,4);
printf("tp_adc_value =%d\n",local_10);
close(local_c);
if ((local_10 < 0xf85) || (0xfff < local_10)) {
system(
"cp /dso/var/run//package/fpga/SCOPE_TOP_V3002.bin /lib/firmware/psram_board_test.fs.bin -rf"
);
}
else {
system(
"cp /dso/var/run//package/fpga/SCOPE_TOP_V3202.bin /lib/firmware/psram_board_test.fs.bin -rf"
);
}
system("sync");
}
return 0;
}
Depending on the return value from /dev/tp_adc device, adc_test write FW3102 or FW3202. In my case, adc_test always returns different values in the range 0x4DC - 0x4E0. The question is what is the driver tp-adc.ko, what is the device /dev/tp_adc? Why are different values returned? Maybe TP - Touch Panel (see datasheet F1C200s).
I also found a hardware way to increase the processor core voltage without increasing the FPGA supply voltage.
-
#230 Reply
Posted by
carlosedp
on 12 Jul, 2021 15:48
-
-
#231 Reply
Posted by
DavidAlfa
on 12 Jul, 2021 23:47
-
I've had a hard time searching for a simple tool that parses binary files searching for a pattern just like grep does for text files.
Most options used perl or python, not an option here, these libraries use a lot of space and are messy.
Then I found this guy, who seems to have gotten into my same situation, and wrote his own tool.
https://github.com/tmbinc/bgrepIt worked like a charm. I cross-compiled it, it's uploaded into the folder mods/static binaries.
Patching is easy. Configuring isn't. There isn't a known way to modify the system menu, everything seems to be hardcoded inside phoenix app.
The xml files do nothing else than defining the strings.
I made a simple script with that tool, and worked perfect.
I'm tired, tomorrow is another day! Scripts coming soon!
-
#232 Reply
Posted by
DavidAlfa
on 13 Jul, 2021 11:07
-
Update package ready. Check
mods/patcher.
Patcher for enabling uart ascii decoding and plot color modding. Uses pattern search so it should work on any version.
Usage is simple: set the options to 1 or 0 in the file patch_values.
The patcher always uses a clean copy of phoenix, so setting it to 0 will revert that option to defaults.
For the colors, also set in patch_values, use any RGB color picker. Values must be in HEX!
The dso software applies some processing to the colors: White, black or any grey are always painted with the same shade of grey shade.
Sorry if you loved 50 Shades Of Grey!
-
#233 Reply
Posted by
tifkat
on 13 Jul, 2021 11:22
-
Any chance of updating the first post with all instructions, or a link to the Google drive location, and a full doc in there?
-
#234 Reply
Posted by
DavidAlfa
on 13 Jul, 2021 12:29
-
Each folder in drive has it's own info.txt with instructions.
If you don't see the GDrive link, check your eyes and have a look at my signature!
-
#235 Reply
Posted by
carlosedp
on 13 Jul, 2021 13:07
-
That is pretty awesome, just patched mine and it's working perfectly... I went LeCroy scheme, channel 1 yellow, channel 2 magenta and FFT cyan.

You know what would be awesome (I don't have the binary so can't search for it)... having the bottom channel label(where it shows the coupling, BW, volts/div) in the same color as the trace

Any idea if it's possible?
-
#236 Reply
Posted by
DavidAlfa
on 13 Jul, 2021 14:42
-
No idea. That requires more reverse engineering and lots of spare time.
Don't have the binary? Take it from any decrypted update, then have fun with guidra!
The binary is Phoenix, everything is in the Gdrive folder.
-
#237 Reply
Posted by
carlosedp
on 13 Jul, 2021 18:18
-
Since yesterday I've applied a couple of mods to my DSO2D15:
- Overclock to 720MHz
- Lock-up fix
- Patching to trace colors and ASCII UART
I've noticed that every couple of minute while on, it does the "hardware initialize" again pretty quickly (like 1-2 seconds) with the progress bar and clicks some relays. It didn't do it previously... any idea which mod might be causing this behavior?
Thanks!
-
#238 Reply
Posted by
DavidAlfa
on 13 Jul, 2021 18:38
-
That's the lockup fix. Instead permanently freezing and requiring manual power cycle, it restarts the process.
You might be overclocking too much causing the crashes. For now disable the overclock, to make sure it's not teh software.
Anyways, I hope you first made a backup.
-
#239 Reply
Posted by
carlosedp
on 13 Jul, 2021 18:56
-
Just tuned-down the overclock to 684(18 mult) and it stopped re-initializing... you were right!
Ah yes, I did it... BTW, I believe the backup_builder is not "compatible" with the lockup fix... when it reaches 35%, the process restarts and the backup files are not created.
-
#240 Reply
Posted by
DavidAlfa
on 13 Jul, 2021 19:52
-
-
#241 Reply
Posted by
carlosedp
on 13 Jul, 2021 20:28
-
Nice, gonna take a look at the PDF.
Nono, I did the backup first but tried to take another one after the mods were applied and noticed it
-
#242 Reply
Posted by
carlosedp
on 13 Jul, 2021 21:25
-
Just modified the icons... one question... can you modify the patch script (dso3kb_patcher.upk) to do something like copy and overwrite any file in the "icons" directory from the USB root to /dso/app/res/drawable and also "chmod 777" it?
You might ask why the hassle... I'm a little colorblind so having the traces yellow and green messes up a bit in my eyes.
-
#243 Reply
Posted by
DavidAlfa
on 13 Jul, 2021 22:27
-
Make your do_other_update script and execute it with script launcher.
cp -rf /mnt/udisk/icons/* /dso/app/res/drawable/
No need of chmod-ing anything.
-
#244 Reply
Posted by
carlosedp
on 13 Jul, 2021 22:47
-
Yay, did it! Although I changed the "voltage2.ico" the small voltage arrow was not replaced... gonna investigate a bit more


Thanks David!
-
#245 Reply
Posted by
DavidAlfa
on 13 Jul, 2021 23:45
-
You missed:
vb_ch1_xx.ico
vb_trig1_xx.ico
vb_ch2_xx.ico
vb_trig2_xx.ico
voltage1.ico and voltage2.ico are both green, don't ask me why.
-
#246 Reply
Posted by
carlosedp
on 14 Jul, 2021 01:51
-
It did it! I've posted the modified patcher package and the magenta icons into the public folder of your drive.
-
#247 Reply
Posted by
DavidAlfa
on 14 Jul, 2021 11:57
-
Not bad, but you could do it in a single package. Simply copy "icons" into package folder.
Then in the script:
cp -rf $WORKPATH/package/icons/*.ico /dso/app/res/drawable/
Also, since you made specific icons, you want the plot to match their colours.
So user adjustable settings make no sense. So I modified your package.
I modified the patcher packages to also backup drawable, and tar.gz everything, so it uses very little storage, less than 200KB.
-
#248 Reply
Posted by
DavidAlfa
on 14 Jul, 2021 13:00
-
I noticed you missed a small detail. Please change the math gnd icon to match the plot color!

Then I'll make a "Themes" folder. Now we can have any combination. Looks nice!
The measurings text is still displayed in yellow/green, I'll try to find where the color is set.
-
#249 Reply
Posted by
carlosedp
on 14 Jul, 2021 13:55
-
Just dropped the cyan math icons into my writable "icons" folder.