Skip to content
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

Update README.md #1

Open
wants to merge 101 commits into
base: master
Choose a base branch
from
Open

Update README.md #1

wants to merge 101 commits into from

Conversation

rpcope1
Copy link

@rpcope1 rpcope1 commented Oct 27, 2014

Hi! I saw you forked an old (and somewhat ugly) Python project I had created to interface with that Hantek DSO I had bought a while back. If you're using this library actively, I'd be happy to get and fix any issues you're seeing or feature requests you need as well as update the library to be better behaved; I also take pull requests if that's your thing.

rpcope1 and others added 30 commits October 27, 2014 08:13
…, so there is a pretty full Linux prototype here. Should address issue #3.
…DK and was sending the wrong thing when setting sample rate.
New example: dump to wav file for linux
… instead of map() and ord()), added a performance test.
Robert Cope and others added 30 commits May 2, 2015 15:36
New start/stop_capture calls that really work for custom firmware.
Custom firmware uses LED to signal if capture is running (green) or
if something else is configured (red).
Made custom firmware the default.
Short sleep after flashing firmware to let it run before it is setup.
Set blocksize correctly for every interface.
Check in LibUsbScope whether Bulk or Iso is set.
Determine packetsize automatically
Explain the setup in set_voltage
…ges to LibUsbScope.py Also merging in all of jhoenicke's awesome custom firmware work into master branch.
This makes the device accessible to users which currently have an active session on the machine, which is a bit more secure than just 0666, which is world-writable.
See http://unix.stackexchange.com/a/39485 for reference. I tested this on my machine: I didn’t run the reload command, plugged in the Hantek scope, and the rules file was used.
python3 support, no python2 syntax errors, otherwise untested with py…
Remove explicit udev reload, udev loads rules automatically
USBPollerThread makes problem with newer linux versions.  Instead
we call poll() instead of sleeping in the example programs.

Some fixes for Python 2 compatibility.
Remove USBPollerThread, python 2/3 fixes.
* Set the AADJ bit in the EP2ISOINPKTS register.
Without auto-adjustment in high-speed mode the device wants to send
the same amount of data as requested packet size. If there's not enough
data in the FIFO to fill the packet, it fails with EPROTO status marked
in iso packet status.

Enabling auto-adjustment changes that behavior - the device can now
send an empty response or a smaller response than requested (in chunks
of 1024B).

* Store sample rate in a global variable, set AADJ bit if combined sample
rate across channels is higher or equal to 24MHz.

* use efrate to indicate effective rate - ensure that 500kHz is not larger
than 1MHz.

* Store samplerate as a WORD with values in kilosamples/s units.
Store number of channels in a global var (numchannels).
For 48000 and 2 channels the multiplication would overflow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants