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

[WIP] rigol-ds: add DHO800 & DHO900 #229

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OrionOth
Copy link

@OrionOth OrionOth commented Nov 4, 2023

This PR adds support for Rigol's new DHO800 & DHO900 series. I don't have a DHO800 myself, I do have a DHO924S which is what I will be testing with. That said, the two series seem very similar from what I can tell so supporting one is likely much the same as supporting both.

Conflicts with #228 , this PR is intended to do both.

Comment on lines +252 to +253
# Rigol DHO800 and DHO900 series
ATTRS{idVendor}=="1ab1", ATTRS{idProduct}=="044c", ENV{ID_SIGROK}="1"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lsusb says my DHO804 has a product id of 044d

Bus 003 Device 002: ID 1ab1:044d Rigol Technologies DHO804

@sorki
Copy link

sorki commented Dec 24, 2023

On DHO804, scan works but acquisition fails:

$ sigrok-cli -d rigol-ds:conn=tcp-raw/10.0.0.116/5555   --scan
The following devices were found:
rigol-ds - Rigol DHO804 00.01.02.00.00 [S/N: DHO8A254403951] with 4 channels: CH1 CH2 CH3 CH4
$ sigrok-cli -d rigol-ds:conn=tcp-raw/10.0.0.116/5555 --frames 1 -O analog
sr: session: Could not start rigol-ds device (null) acquisition.
sr: session: Cannot remove non-existing event source 0x7.
Failed to start session.

@sorki
Copy link

sorki commented Dec 24, 2023

Verbose log

sr: [00:00.014268] serial: Parsed serial device: tcp-raw/10.0.0.116/5555.
sr: [00:00.014282] scpi: Opening RAW TCP device tcp-raw/10.0.0.116/5555.
sr: [00:00.015996] scpi_tcp: Successfully sent SCPI command: '*IDN?'.
sr: [00:00.048037] scpi: Got response: 'RIGOL TECHNOLOGIES,DHO804,DHO8A254403951,00.01.02.00.00', length 55.
sr: [00:00.048238] hwdriver: Scan found 1 devices (rigol-ds).
sr: [00:00.048353] device: rigol-ds: Opening device instance.
sr: [00:00.060764] scpi_tcp: Successfully sent SCPI command: ':CHAN1:DISP?'.
sr: [00:00.089549] scpi: Got response: '1', length 1.
sr: [00:00.089615] scpi_tcp: Successfully sent SCPI command: ':CHAN2:DISP?'.
sr: [00:00.111841] scpi: Got response: '1', length 1.
sr: [00:00.111902] scpi_tcp: Successfully sent SCPI command: ':CHAN3:DISP?'.
sr: [00:00.142239] scpi: Got response: '1', length 1.
sr: [00:00.142309] scpi_tcp: Successfully sent SCPI command: ':CHAN4:DISP?'.
sr: [00:00.177715] scpi: Got response: '0', length 1.
sr: [00:00.177742] rigol-ds: Current analog channel state:
sr: [00:00.177761] rigol-ds: CH1 on
sr: [00:00.177769] rigol-ds: CH2 on
sr: [00:00.177779] rigol-ds: CH3 on
sr: [00:00.177791] rigol-ds: CH4 off
sr: [00:00.177846] scpi_tcp: Successfully sent SCPI command: ':TIM:SCAL?'.
sr: [00:00.203592] scpi: Got response: '2.000000E-6', length 11.
sr: [00:00.203682] rigol-ds: Current timebase 2e-06
sr: [00:00.203798] scpi_tcp: Successfully sent SCPI command: ':CHAN1:PROB?'.
sr: [00:00.229028] scpi: Got response: '1', length 1.
sr: [00:00.229110] scpi_tcp: Successfully sent SCPI command: ':CHAN2:PROB?'.
sr: [00:00.254016] scpi: Got response: '1', length 1.
sr: [00:00.254082] scpi_tcp: Successfully sent SCPI command: ':CHAN3:PROB?'.
sr: [00:00.280201] scpi: Got response: '1', length 1.
sr: [00:00.280283] scpi_tcp: Successfully sent SCPI command: ':CHAN4:PROB?'.
sr: [00:00.304515] scpi: Got response: '1', length 1.
sr: [00:00.304549] rigol-ds: Current probe attenuation:
sr: [00:00.304590] rigol-ds: CH1 1
sr: [00:00.304621] rigol-ds: CH2 1
sr: [00:00.304654] rigol-ds: CH3 1
sr: [00:00.304690] rigol-ds: CH4 1
sr: [00:00.304764] scpi_tcp: Successfully sent SCPI command: ':CHAN1:SCAL?'.
sr: [00:00.329059] scpi: Got response: '5.000000E-02', length 12.
sr: [00:00.329125] scpi_tcp: Successfully sent SCPI command: ':CHAN2:SCAL?'.
sr: [00:00.353055] scpi: Got response: '5.000000E-02', length 12.
sr: [00:00.353133] scpi_tcp: Successfully sent SCPI command: ':CHAN3:SCAL?'.
sr: [00:00.377705] scpi: Got response: '5.000000E-02', length 12.
sr: [00:00.377799] scpi_tcp: Successfully sent SCPI command: ':CHAN4:SCAL?'.
sr: [00:00.402341] scpi: Got response: '5.000000E-02', length 12.
sr: [00:00.402390] rigol-ds: Current vertical gain:
sr: [00:00.402425] rigol-ds: CH1 0.05
sr: [00:00.402456] rigol-ds: CH2 0.05
sr: [00:00.402489] rigol-ds: CH3 0.05
sr: [00:00.402523] rigol-ds: CH4 0.05
sr: [00:00.402602] scpi_tcp: Successfully sent SCPI command: ':CHAN1:OFFS?'.
sr: [00:00.430572] scpi: Got response: '0.000000E+00', length 12.
sr: [00:00.430646] scpi_tcp: Successfully sent SCPI command: ':CHAN2:OFFS?'.
sr: [00:00.455193] scpi: Got response: '0.000000E+00', length 12.
sr: [00:00.455260] scpi_tcp: Successfully sent SCPI command: ':CHAN3:OFFS?'.
sr: [00:00.478107] scpi: Got response: '0.000000E+00', length 12.
sr: [00:00.478214] scpi_tcp: Successfully sent SCPI command: ':CHAN4:OFFS?'.
sr: [00:00.502277] scpi: Got response: '0.000000E+00', length 12.
sr: [00:00.502324] rigol-ds: Current vertical offset:
sr: [00:00.502358] rigol-ds: CH1 0
sr: [00:00.502398] rigol-ds: CH2 0
sr: [00:00.502437] rigol-ds: CH3 0
sr: [00:00.502471] rigol-ds: CH4 0
sr: [00:00.502531] scpi_tcp: Successfully sent SCPI command: ':CHAN1:COUP?'.
sr: [00:00.527192] scpi: Got response: 'DC', length 2.
sr: [00:00.527249] scpi_tcp: Successfully sent SCPI command: ':CHAN2:COUP?'.
sr: [00:00.551574] scpi: Got response: 'DC', length 2.
sr: [00:00.551644] scpi_tcp: Successfully sent SCPI command: ':CHAN3:COUP?'.
sr: [00:00.576088] scpi: Got response: 'DC', length 2.
sr: [00:00.576145] scpi_tcp: Successfully sent SCPI command: ':CHAN4:COUP?'.
sr: [00:00.602261] scpi: Got response: 'DC', length 2.
sr: [00:00.602291] rigol-ds: Current coupling:
sr: [00:00.602308] rigol-ds: CH1 DC
sr: [00:00.602346] rigol-ds: CH2 DC
sr: [00:00.602377] rigol-ds: CH3 DC
sr: [00:00.602436] rigol-ds: CH4 DC
sr: [00:00.602521] scpi_tcp: Successfully sent SCPI command: ':TRIG:EDGE:SOUR?'.
sr: [00:00.634860] scpi: Got response: 'CHAN1', length 5.
sr: [00:00.634890] rigol-ds: Current trigger source CHAN1
sr: [00:00.634973] scpi_tcp: Successfully sent SCPI command: ':TIM:OFFS?'.
sr: [00:00.669511] scpi: Got response: '0.000000', length 8.
sr: [00:00.669557] rigol-ds: Current horizontal trigger position 0
sr: [00:00.669656] scpi_tcp: Successfully sent SCPI command: ':TRIG:EDGE:SLOP?'.
sr: [00:00.703708] scpi: Got response: 'POS', length 3.
sr: [00:00.703727] rigol-ds: Current trigger slope POS
sr: [00:00.703770] scpi_tcp: Successfully sent SCPI command: ':TRIG:EDGE:LEV?'.
sr: [00:00.733303] scpi: Got response: '0.000000', length 8.
sr: [00:00.733321] rigol-ds: Current trigger level 0
sr: [00:00.733353] hwdriver: sr_config_set(): key 50002 (limit_frames) sdi 0x8fcb30 cg NULL -> uint64 1
sr: [00:00.733382] session: Using thread-default main context.
sr: [00:00.733387] session: Starting.
sr: [00:00.733392] hwdriver: rigol-ds: Starting acquisition.
sr: [00:00.733398] rigol-ds: handling channel CH1
sr: [00:00.733403] rigol-ds: handling channel CH2
sr: [00:00.733408] rigol-ds: handling channel CH3
sr: [00:00.733413] rigol-ds: handling channel CH4
sr: [00:00.733450] scpi_tcp: Successfully sent SCPI command: ':RUN'.
sr: [00:00.733461] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.811691] scpi: Got response: '0', length 1.
sr: [00:00.821899] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.846508] scpi: Got response: '0', length 1.
sr: [00:00.856750] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.883215] scpi: Got response: '0', length 1.
sr: [00:00.893497] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.917326] scpi: Got response: '0', length 1.
sr: [00:00.927496] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.960341] scpi: Got response: '0', length 1.
sr: [00:00.970511] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.993847] scpi: Got response: '0', length 1.
sr: [00:01.004008] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.027734] scpi: Got response: '0', length 1.
sr: [00:01.037912] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.063714] scpi: Got response: '0', length 1.
sr: [00:01.073907] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.097120] scpi: Got response: '0', length 1.
sr: [00:01.107316] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.131505] scpi: Got response: '0', length 1.
sr: [00:01.141689] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.168214] scpi: Got response: '0', length 1.
sr: [00:01.178383] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.200714] scpi: Got response: '0', length 1.
sr: [00:01.210909] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.238116] scpi: Got response: '0', length 1.
sr: [00:01.248246] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.273250] scpi: Got response: '0', length 1.
sr: [00:01.283457] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.309224] scpi: Got response: '0', length 1.
sr: [00:01.319408] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.344342] scpi: Got response: '0', length 1.
sr: [00:01.354562] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.379218] scpi: Got response: '0', length 1.
sr: [00:01.389387] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.413599] scpi: Got response: '0', length 1.
sr: [00:01.423790] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.448556] scpi: Got response: '0', length 1.
sr: [00:01.458744] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.481971] scpi: Got response: '0', length 1.
sr: [00:01.492178] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.519933] scpi: Got response: '0', length 1.
sr: [00:01.530128] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.556817] scpi: Got response: '0', length 1.
sr: [00:01.567036] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.593175] scpi: Got response: '0', length 1.
sr: [00:01.603358] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.629052] scpi: Got response: '0', length 1.
sr: [00:01.639274] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.661981] scpi: Got response: '0', length 1.
sr: [00:01.672208] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.696561] scpi: Got response: '0', length 1.
sr: [00:01.706762] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.732712] scpi: Got response: '0', length 1.
sr: [00:01.742895] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.765410] scpi: Got response: '0', length 1.
sr: [00:01.775647] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.802498] scpi: Got response: '0', length 1.
sr: [00:01.812674] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.836631] scpi: Got response: '0', length 1.
sr: [00:01.846800] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.871208] scpi: Got response: '0', length 1.
sr: [00:01.881424] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.906770] scpi: Got response: '0', length 1.
sr: [00:01.916944] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.939428] scpi: Got response: '0', length 1.
sr: [00:01.949606] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.976750] scpi: Got response: '0', length 1.
sr: [00:01.986994] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.010204] scpi: Got response: '0', length 1.
sr: [00:02.020393] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.045922] scpi: Got response: '0', length 1.
sr: [00:02.056118] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.082206] scpi: Got response: '0', length 1.
sr: [00:02.092385] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.117493] scpi: Got response: '0', length 1.
sr: [00:02.127738] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.152698] scpi: Got response: '0', length 1.
sr: [00:02.162936] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.193210] scpi: Got response: '0', length 1.
sr: [00:02.203388] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.230081] scpi: Got response: '0', length 1.
sr: [00:02.240258] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.265041] scpi: Got response: '0', length 1.
sr: [00:02.275240] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.299404] scpi: Got response: '0', length 1.
sr: [00:02.309587] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.332088] scpi: Got response: '0', length 1.
sr: [00:02.342274] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.365345] scpi: Got response: '0', length 1.
sr: [00:02.375526] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.398299] scpi: Got response: '0', length 1.
sr: [00:02.408520] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.436508] scpi: Got response: '0', length 1.
sr: [00:02.446907] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.471409] scpi: Got response: '0', length 1.
sr: [00:02.481602] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.504928] scpi: Got response: '0', length 1.
sr: [00:02.515143] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.539082] scpi: Got response: '0', length 1.
sr: [00:02.549260] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.573262] scpi: Got response: '0', length 1.
sr: [00:02.583626] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.607726] scpi: Got response: '0', length 1.
sr: [00:02.617934] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.642340] scpi: Got response: '0', length 1.
sr: [00:02.652543] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.676280] scpi: Got response: '0', length 1.
sr: [00:02.686526] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.712668] scpi: Got response: '0', length 1.
sr: [00:02.722883] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.747901] scpi: Got response: '0', length 1.
sr: [00:02.758108] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.780648] scpi: Got response: '0', length 1.
sr: [00:02.790931] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.820802] scpi: Got response: '0', length 1.
sr: [00:02.830990] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.855729] scpi: Got response: '0', length 1.
sr: [00:02.865953] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.892474] scpi: Got response: '0', length 1.
sr: [00:02.902855] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.926225] scpi: Got response: '0', length 1.
sr: [00:02.936422] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.959224] scpi: Got response: '0', length 1.
sr: [00:02.969414] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:02.993613] scpi: Got response: '0', length 1.
sr: [00:03.003821] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.030699] scpi: Got response: '0', length 1.
sr: [00:03.040895] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.066140] scpi: Got response: '0', length 1.
sr: [00:03.076369] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.101105] scpi: Got response: '0', length 1.
sr: [00:03.111340] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.134918] scpi: Got response: '0', length 1.
sr: [00:03.145105] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.168575] scpi: Got response: '0', length 1.
sr: [00:03.178774] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.201591] scpi: Got response: '0', length 1.
sr: [00:03.211778] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.238214] scpi: Got response: '0', length 1.
sr: [00:03.248447] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.272453] scpi: Got response: '0', length 1.
sr: [00:03.282772] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.309565] scpi: Got response: '0', length 1.
sr: [00:03.319757] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.352286] scpi: Got response: '0', length 1.
sr: [00:03.362504] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.385907] scpi: Got response: '0', length 1.
sr: [00:03.396182] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.420627] scpi: Got response: '0', length 1.
sr: [00:03.430832] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.455646] scpi: Got response: '0', length 1.
sr: [00:03.465815] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.488364] scpi: Got response: '0', length 1.
sr: [00:03.498539] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.523916] scpi: Got response: '0', length 1.
sr: [00:03.534222] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.558627] scpi: Got response: '0', length 1.
sr: [00:03.568820] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.595746] scpi: Got response: '0', length 1.
sr: [00:03.605958] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.629055] scpi: Got response: '0', length 1.
sr: [00:03.639291] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.662263] scpi: Got response: '0', length 1.
sr: [00:03.672425] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.695908] scpi: Got response: '0', length 1.
sr: [00:03.706126] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.731548] scpi: Got response: '0', length 1.
sr: [00:03.741732] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.766171] scpi: Got response: '0', length 1.
sr: [00:03.776369] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.800361] scpi: Got response: '0', length 1.
sr: [00:03.810556] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.836419] scpi: Got response: '0', length 1.
sr: [00:03.846596] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.869352] scpi: Got response: '0', length 1.
sr: [00:03.879544] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.905135] scpi: Got response: '0', length 1.
sr: [00:03.915347] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.940578] scpi: Got response: '0', length 1.
sr: [00:03.950811] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:03.975786] scpi: Got response: '0', length 1.
sr: [00:03.985973] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.009447] scpi: Got response: '0', length 1.
sr: [00:04.019656] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.046219] scpi: Got response: '0', length 1.
sr: [00:04.056411] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.078907] scpi: Got response: '0', length 1.
sr: [00:04.089077] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.111556] scpi: Got response: '0', length 1.
sr: [00:04.121789] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.146941] scpi: Got response: '0', length 1.
sr: [00:04.157116] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.182469] scpi: Got response: '0', length 1.
sr: [00:04.192640] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.217644] scpi: Got response: '0', length 1.
sr: [00:04.227821] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.250607] scpi: Got response: '0', length 1.
sr: [00:04.260776] scpi_tcp: Successfully sent SCPI command: '*OPC?'.
sr: [00:04.283162] scpi: Got response: '0', length 1.
sr: [00:04.293277] session: Could not start rigol-ds device (null) acquisition.
sr: [00:04.293300] hwdriver: rigol-ds: Stopping acquisition.
sr: [00:04.293308] session: bus: Received SR_DF_END packet.
sr: [00:04.293316] session: Cannot remove non-existing event source 0x7.

@OrionOth
Copy link
Author

Thanks for the log! Yeah, if you look at the PR contents, I had to add a whole new "protocol version" (really that enum just serves to signify changes between rigol's SCPI syntax etc., and should probably be implemented on a per-series level instead). There were enough changes from 'v5' that I got kinda discouraged and focused on my college work instead. This is a great time to continue working on this, though! I'll try solving this.

@sorki
Copy link

sorki commented Dec 25, 2023

Yeah I've looked at the patches briefly and tried to trace what's going on but it seems to lead into generic SCPI functions so I wasn't able to quickly figure it out (first time seeing the sigrok codebase).

If you don't have DHO8 at hand and want to try, I can set-up a VM a with the scope connected to it and give you access to it. I'll have it at home till new year maybe a bit longer but even after that I could arrange remote access via some SBC I think.

@OrionOth
Copy link
Author

Thanks for the offer, but I do have a DHO9 on hand, and they are basically identical except it also has the digital channels. All documentation for one series applies equally to the other (same PDFs), again with the exception that the 900 series has LA channels. So, aside from the aforementioned udev rules, I think I should have everything I need... I'll let you know if I need to personally do specific testing on an 800.

@sorki
Copy link

sorki commented Jan 8, 2024

Yeah I don't know why I didn't realize this as I was reading the unlocking thread just a day before and they mention that you can turn DHO8 to DHO9 by just flipping some bits in vendors configuration.

Anyway thanks for working on this!

@RemiNV
Copy link

RemiNV commented Jul 2, 2024

Is this PR still being worked on ? I just got a DHO804 and was considering looking at what additional changes are necessary to get this to work.

@RemiNV
Copy link

RemiNV commented Jul 4, 2024

FYI I got basic acquisition to work with 3430e8e

But it isn't very stable, depending on the frame size on pulseview it may hang. I suspect it wouldn't be very hard to debug it from there, considering the commands are documented (https://rigolshop.eu/downloadable/download/attachment/id/42436/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants