Hello all, I added support of the Hantek 4032l logic analyzer to the libsigrok library. The source can be pulled or used from: https://github.com/zschunky/libsigrok.git
This is the 1st version of the implementation. I will continue to clean it up and advance it. For now only one stage of triggers is supported with only one channel being rising/falling/edge. All other channels can still be used as trigger with 0 or 1. The threshold voltage is currently fixed to 1.5V. Sample size per channel ranges from 2kb to 64Mb in 512 byte steps (given size will be adjusted if it does not fit into 512 byte steps). Feel free to try it out. Feedback and code review is welcome (it was my first time I had to deal with sigrok code and libusb). here is are some print-outs when running the sigrok-cli: anz@Prohlis:~$ sigrok-cli --scan The following devices were found: demo - Demo device with 12 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3 fx2lafw:conn=2.6 - Saleae Logic with 8 channels: 0 1 2 3 4 5 6 7 hantek-4032l:conn=2.10 - Hantek 4032L with 32 channels: A0 B0 A1 B1 A2 B2 A3 B3 A4 B4 A5 B5 A6 B6 A7 B7 A8 B8 A9 B9 A10 B10 A11 B11 A12 B12 A13 B13 A14 B14 A15 B15 anz@Prohlis:~$ sigrok-cli --show -d hantek-4032l Driver functions: Logic analyzer Scan options: conn hantek-4032l:conn=2.10 - Hantek 4032L with 32 channels: A0 B0 A1 B1 A2 B2 A3 B3 A4 B4 A5 B5 A6 B6 A7 B7 A8 B8 A9 B9 A10 B10 A11 B11 A12 B12 A13 B13 A14 B14 A15 B15 Channel groups: A: channels A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 B: channels B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 B10 B11 B12 B13 B14 B15 Supported configuration options across all channel groups: samplerate - supported samplerates: 1 kHz 2 kHz 4 kHz 8 kHz 16 kHz 31.25 kHz 62.5 kHz 125 kHz 250 kHz 500 kHz 625 kHz 781.25 kHz 1 MHz 1.25 MHz 1.5625 MHz 2 MHz 2.5 MHz 3.125 MHz 4 MHz 5 MHz 6.25 MHz 10 MHz 12.5 MHz 20 MHz 25 MHz 40 MHz 50 MHz 80 MHz 100 MHz 160 MHz 200 MHz 320 MHz 400 MHz captureratio: 5 (current) limit_samples: 16384 (current) Supported triggers: 0 1 r f e conn: 2.10 (current) anz@Prohlis:~$ sigrok-cli -d hantek-4032l --config samplerate=400M --samples=2048 --channels A0=0,A1=1,A14=2,A15=3,B0=4,B1=5,B14=6,B15=7 -t 0=r,1=0,2=1 -O ascii libsigrok 0.5.0-git-2217be1 Acquisition with 8/32 channels at 400 MHz 0:.................../""""""""""""""""""""\................../"""""""""""""" 4:"""""""""""\.............................................................. 1:"\......................................../""""""""""""""""""""""""""""""" 5:............./"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2:"""\...................................................................... 6:.......................................................................... 3:"""""\/\.................................................................. 7:.......................................................................... 0:"""""\.................../"""""""""""""""""""\.................../"""""""" 4:.......................................................................... 1:"""""""\......................................./"""""""""""""""""""""""""" 5:"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2:........./"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 6:.......................................................................... 3:.......................................................................... 7:.......................................................................... 0:"""""""""""\.................../""""""""""""""""""""\................../"" 4:.......................................................................... 1:"""""""""""""\......................................../""""""""""""""""""" 5:"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2:"""""""""""""""\.......................................................... 6:.......................................................................... 3:................./\/"""""""""""""""""""""""""""""""""""""""""""""""""""""" 7:.......................................................................... 0:"""""""""""""""""\.................../"""""""""""""""""""\................ 4:.......................................................................... 1:"""""""""""""""""""\......................................./"""""""""""""" 5:"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2:...................../"""""""""""""""""""""""""""""""""""""""""""""""""""" 6:.......................................................................... 3:"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 7:.......................................................................... 0:.../"""""""""""""""""""\.................../""""""""""""""""""""\......... 4:.................................../"""""""""""""""""""""""""""""""""""""" 1:"""""""""""""""""""""""""\......................................../""""""" 5:"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2:"""""""""""""""""""""""""""\.............................................. 6:.......................................................................... 3:"""""""""""""""""""""""""""""\/\.......................................... 7:.......................................................................... 0:........./"""""""""""""""""""\.................../"""""""""""""""""""\.... 4:"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 1:"""""""""""""""""""""""""""""""\......................................./"" 5:"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2:................................./"""""""""""""""""""""""""""""""""""""""" 6:.......................................................................... 3:.......................................................................... 7:.......................................................................... ... list of changed files: modified: Makefile.am modified: configure.ac modified: contrib/z60_libsigrok.rules modified: src/drivers.c new file: src/hardware/hantek-4032l/h4032l.c best regards -Andreas ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel