A driver for the Hantek 1008 (c?) USB-oscilloscope
APACHE-2.0 License
This project provides tooling for using Hantek 1008 USB-oscilloscopes without proprietary software on Linux and Windows (not tested). You can include the Hantek1008 class from 'hantek1008.py' in your project to get access to the features of the device. Alternatively use the csvexport.py Python application to gain data and save it to a file.
This project is based on careful reverse engineering of the device's USB protocol. The reverse engineering was only done to the extent necessary to obtain data for my master's thesis and does not cover all the features and configuration options of the device. Therefore, no guarantees can be made as to the reliability or accuracy of the data collected.
python3 csvexport.py mydata.csv -s 1 2
This will write the measured data of channel 1 and 2 to 'mydata.csv' until you press CTRL+C to stop the measurement.
python3 csvexport.py --help
This will show you all the available options/parameters and explains them in-depth.
pip3 install pyusb overrides
)sudo udevadm control -R
This project is open for contributions. Unfortunately, I have no longer access to a Hantek 1008 device, so I cannot test contributions. Also giving support in case of a problem is difficult under these circumstances, but I will try my best.