forked from rpcope1/Hantek6022API
-
Notifications
You must be signed in to change notification settings - Fork 0
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
rpcope1
wants to merge
101
commits into
Shotte:master
Choose a base branch
from
rpcope1:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…TODO list to the README.
…, 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.
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
udev: use uaccess tag
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.