-
Notifications
You must be signed in to change notification settings - Fork 41
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
Trying to get firmware upload example running ... #28
Comments
If I had to guess just looking at that traceback, we're attempt to encode Is this on Python 2 or Python 3? That encode method call really shouldn't On Mon, Mar 7, 2016 at 7:15 PM, Lauren Weinstein [email protected]
|
I haven't made any changes to the formats of the firmware files as provided. My initial tests were with python 2.7.6. I have 3.4.3 also, but I have to figure out how to install libusb for that as a start -- pip doesn't seem to be working correctly. Thanks. |
OK, I got to the point with python3 where I could run the firmware upload -- in its default configuration -- and received no error messages (or confirmation messages -- it simply exits). No red or green lights lit on the Hantek. Due to problems installing pylab for python3 (dependency errors, see below), I ended up running scopevis.py using python2 (after running the firmware upload using python3, that is). Errors from pylab install attempt below. Next post is results from scopevis.py. pip3 install pylab Downloading/unpacking jinja2 (from pylab)
Downloading/unpacking networkx (from pylab) Downloading/unpacking matplotlib (from pylab)
Downloading/unpacking tornado (from pylab)
Downloading/unpacking pytz (from pylab)
Downloading/unpacking scikit-image (from pylab) No eggs found in /e/tmp/easy_install-esu360hx/Cython-0.23.4/egg-dist-tmp-9tggyy__ (setup script problem?) Traceback (most recent call last): File "", line 17, in File "/var/host/media/removable/SG-USB-5TB-001/tmp/pip_build_root/scikit-image/setup.py", line 146, in
File "/usr/lib/python3/dist-packages/numpy/distutils/core.py", line 126, in setup
File "/usr/lib/python3/dist-packages/numpy/distutils/core.py", line 169, in setup
File "/usr/lib/python3.4/distutils/core.py", line 108, in setup
File "/usr/lib/python3/dist-packages/numpy/distutils/numpy_distribution.py", line 16, in init
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 239, in init
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 264, in fetch_build_eggs
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 628, in resolve
pkg_resources.DistributionNotFound: cython>=0.21 Cleaning up... |
First run of scopevis.py: Second run: Third run: Fourth run: "Scope Visualization Example" appeared: |
Hi. Here's where my testing stands. I have a 6022BL, not BE, but for the purposes of this code the only relevant difference should be the USB PID. I've switched the PID over to match the BE so the code here successfully opens the device. When I try example_linux_flashfirmware.py, I get:
Traceback (most recent call last):
File "examples/example_linux_flashfirmware.py", line 8, in
scope.flash_firmware()
File "/git/Hantek6022API/PyHT6022/LibUsbScope.py", line 149, in flash_firmware
data = packet.data.encode('ascii') if isinstance(packet.data, str) else packet.data
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 2: ordinal not in range(128)
I am not convinced that I have the included firmware (either stock or custom) set up properly, however.
Any suggestions? Thanks very much.
L
The text was updated successfully, but these errors were encountered: