Hello,

I wrote a basic support for this usb oscilloscope and it looks like it works :-)

Code:
https://github.com/sigrokproject/sigrok-firmware-fx2lafw/pull/1
https://github.com/sigrokproject/libsigrok/pull/18

Demo in Pulseview:
https://majek.sh/wp-content/uploads/2018/11/yixiangzi-mdso-pulseview.png

While it works for me, it's not perfect. Input gain at '10' range is not 100mV/div but 62.5mV/div. And problem is that these ranges are hardcoded in libsigrok driver for hantek_6xxx in some complicated (for me) to customize way. There is similar issue with Sainsmart DS120 because it supports also '20' gain in firmware, but driver can't use it.

I don't know if I could be able to rewrite this all VDIV_REG/VDIV_VALUES part, for now it looks like it's beyond my C programming skills :-)

I have also issue with sampling rates above 24MHz where device returns some sliced data which is also not timed to any sampling frequency. Number of channels set is irrelevant. Is it issue with my oscilloscope or with whole driver/firmware and affects also Hantek and Sainsmart?
From what i know about FX2 chip, frequencies above 24MHz are limited to
only 8 bits sampling, so there shouldn't be possible to choose it with 2 channels enabled, am I right?


Best regards

Marek
--
"If you want something done...do yourself!"
Jean-Baptiste Emmanuel Zorg


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to