I finally got the scope to work as shown below -- I primarily needed it for some work on NMR probes I did two years ago, but better late than never.
Probe set to X1 |
Probe set to X10 |
Before installing anything, on plugging in the oscilloscope we get:
dmesg
[10885.993061] usb 2-2: USB disconnect, device number 3[10894.913984] usb 1-2: new high-speed USB device number 9 using ehci_hcd[10895.046104] usb 1-2: New USB device found, idVendor=04b4, idProduct=2250[10895.046117] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0[10895.398887] usb 1-2: USB disconnect, device number 9[10895.668190] usb 1-2: new high-speed USB device number 10 using ehci_hcd[10895.800317] usb 1-2: New USB device found, idVendor=04b4, idProduct=2250[10895.800330] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
lsusb
Bus 001 Device 010: ID 04b4:2250 Cypress Semiconductor Corp.
Openhantek
cd ~/tmpsvn checkout http://svn.code.sf.net/p/openhantek/code/trunk openhantek-codecd openhantek-code/sudo apt-get install libqt4-dev libfftw3-dev qt4-qmake fxload libusb-1.0-0-dev libbfd-devqmakemakesudo make installcd ../openhantek-extractfw/wget http://sourceforge.net/projects/openhantek/files/openhantek-extractfw/openhantek-extractfw-0.7.0.tar.bz2tar xvf openhantek-extractfw-0.7.0.tar.bz2cp openhantek-extractfw/configure .cp openhantek-extractfw/Makefile.in .rm openhantek-extractfw -rf./configuremakewget http://www.hantek.com.cn/Product/32Driver/2250/Driver.rarunrar x Driver.rar./openhantek-extractfw Driver/DSO22501.sysBFD: Driver/DSO22501.sys: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .textBFD: Driver/DSO22501.sys: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .dataSection .data found (starting at 0x08a0, 9504 bytes)Symbol _firmware found (offset 0x0000, 8184 bytes)Symbol _loader found (offset 0x1ff8, 1320 bytes)Saving firmware as Driver/dso2250-firmware.hexSaving loader as Driver/dso2250-loader.hexsudo mkdir -p /usr/local/share/hanteksudo cp Driver/*.hex /usr/local/share/hantek/
Edit 90-hantek.rules and change
13 # Hantek DSO-2250 14 SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="4b4/2250/*", RUN+="/sbin/fxload -t fx2 -I /usr/local/share/hantek/dso2250-firmware.hex -s /usr/local/share/hantek/dso2250-loader.hex -D $env{DEVNAME}" 15 SYSFS{idVendor}=="04b5", SYSFS{idProduct}=="2250", MODE="0660", GROUP="plugdev"
to 13 # Hantek DSO-2250 14 SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="4b4/2250/*", RUN+="/sbin/fxload -t fx2 -I /usr/local/share/hantek/dso2250-firmware.hex -s /usr/local/share/hantek/dso2250-loader.hex -D $env{DEVNAME}" 15 SYSFS{idVendor}=="04b4", SYSFS{idProduct}=="2250", MODE="0660", GROUP="plugdev"
sudo cp 90-hantek.rules /etc/udev/rules.d/sudo service udev restartsudo usermod -a -G plugdev $USER
Plug in your oscilloscope:
[ 4216.277235] udevd[23240]: starting version 175[ 4246.532221] usb 2-2: new high-speed USB device number 5 using ehci_hcd[ 4246.664559] usb 2-2: New USB device found, idVendor=04b4, idProduct=2250[ 4246.664570] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0[ 4246.718694] usb 2-2: USB disconnect, device number 5[ 4248.492214] usb 2-2: new high-speed USB device number 6 using ehci_hcd[ 4248.625224] usb 2-2: New USB device found, idVendor=04b5, idProduct=2250[ 4248.625238] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0[ 4248.625246] usb 2-2: Product: DSO-2250 [ 4248.625252] usb 2-2: Manufacturer: ODM
At this point the light on the oscilloscope was blinking red.
sudo openhantek
Check the 'show spectrum' thingy (I'm running this with the probe on CH1 connected to the square wave cal at the back of the scope).
I can only get it to work as root -- work on sorting that out some other time.
Hiç yorum yok:
Yorum Gönder