Products > Test Equipment

New Hantek DSO2X1X models?

<< < (374/388) > >>

DavidAlfa:
I can't, I don't know.

Try disassemblying phoenix in Ghidra, that's how I did everything, but it takes ages to find anything out and even more to modify, it's anything but easy.
Read the hacking thread, specially this message.

I would start by searching "Hz", "KHz", "MHz" strings in the binary and finding where they're being used.

To avoid further bricking you can make a simple script that restores phoenix after several boots.
USB console will probably fail to work if phoenix crashes but give it a try.

Create a file named "S11_restore_phoenix.sh" in the root of the USB drive.
Ensure it uses UNIX new line format!

--- Code: ---#!/bin/sh

# Read file, increase counter
import /etc/phoenix_count
PHOENIX_COUNT=$(($PHOENIX_COUNT + 1))

if [ $PHOENIX_COUNT -lt 3 ]; then
  echo "PHOENIX_COUNT=$PHOENIX_COUNT" > /etc/phoenix_count
  sync
fi

# Restore after 3 boots
if [ -f /dso/app/phoenix_bak ] && [ $PHOENIX_COUNT -gt 2 ]; then
  pidof phoenix dbus-daemon | xargs kill -9
  cp /dso/app/phoenix_bak /dso/app/phoenix
  chmod +x /dso/app/phoenix
  sync
  reboot -f
fi

--- End code ---

Add this to do_other_update:

--- Code: ---# Make phoenix backup and copy the restore script

if [ ! -f /dso/app/phoenix_bak ]
  cp /dso/app/phoenix /dso/app/phoenix_bak
  cp /mnt/udisk/S11_restore_phoenix.sh /etc/init.d/
  chmod +x /etc/init.d/S11_restore_phoenix.sh
else
  # reset counter, start over
  rm /etc/phoenix_count
fi

# Copy your modded phoenix from usb drive
cp /mnt/udisk/phoenix /dso/app/
chmod +x /dso/app/phoenix

--- End code ---

Copy the modded phoenix to the root of the USB drive and run do_other_update with Script launcher.

Working or not, after 3 boots (Wait until the second Hantek logo shows up, then another 5-10 seconds) the original file will be restored.

Pin240:

--- Quote from: DavidAlfa on April 26, 2024, 09:36:29 pm ---

I would start by searching "Hz", "KHz", "MHz" strings in the binary and finding where they're being used.

--- End quote ---
I found them in Phoenix and in some xml files.

OLderDan:
I have just learned what the ref save and recall does and was wondering if there was any way to reposition the image or do I continue to setup the trace in the position I want the reference image to be displayed.
I wish there was a more complete help system for this oscilloscope, some of the inbuilt pages are empty and the only way I even understood what save and recall a ref even did was an out of context comment on a you tube video I was watching!
I finally understand the connection to time in ms ns and the actual frequency in Hz thanks to experimenting with my dso2d15, and even more useful, how to convert between SI units while measuring a capacitors charge rise to determine its value, I discovered the use of zooming the screen when looking at a long uart packet, and using the two probe tips and math function to make differential readings.

Maybe there is room in this thread for a RTFM tips section?

Aldo22:

--- Quote from: OLderDan on April 28, 2024, 07:19:27 am ---I have just learned what the ref save and recall does and was wondering if there was any way to reposition the image or do I continue to setup the trace in the position I want the reference image to be displayed.

--- End quote ---
The reference waveform is simply a kind of screenshot of a trace. You can't do anything with it other than look at it, afaik.
The “FM” says:

2.9
3. Reference
The scope saves the waveform data in memory in “.ref” format. Up to 9 Ref files (No.1~No.9) can be stored in the internal
memory. The stored Ref can be recalled, a total of 2 Refs can be recalled. At recall, the Refs will be displayed on the screen
directly, at the same time, the time base, volt/div and level position when saving the Refs file are displayed. When the Refs is
not needed, you can select “Close”.

OLderDan:
I was watching a new YouTube dso2d15 unboxing and noticed the icon display for the awg at the bottom of the screen switched between a B and G at different times. I also noticed the screenshots here by Aldo show a B in some and G in others, and mine always shows G no matter what settings I have tried,
Any ideas what the different letter B or G signifies?

EDIT: gotta love serendipity... If you read post #1857 there is a clue!  I found how to change it to B(urst) mode!!!! Thanks again Aldo.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod