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

Trouble on Ubuntu with a Rigol DP832 ... #2

Open
jjhatt opened this issue Mar 27, 2019 · 4 comments
Open

Trouble on Ubuntu with a Rigol DP832 ... #2

jjhatt opened this issue Mar 27, 2019 · 4 comments

Comments

@jjhatt
Copy link

jjhatt commented Mar 27, 2019

I just don't know how to trouble-shoot this problem:
$ ./tmc
USBTMC debug: Using TermChar $VAR1 = '
';

USBTMC debug: enable auto detach of kernel driver.
USBTMC debug: Found USBTMC interface at number 0
USBTMC debug: Claiming interface no. 0
USBTMC debug: Found bulk-in endpoint with address 0x82
USBTMC debug: Found bulk-out endpoint with address 0x3
USBTMC debug: dev_dep_msg_out with data :SYST:REM

USBTMC debug: dev_dep_msg_out: write failed. Aborting bulk transfer.
USBTMC debug: initiate abort bulk out
INITIATE_ABORT_BULK_OUT failed with status 128 at ./tmc line 17.
error in libusb_bulk_transfer_write: Operation timed out at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/USB/LibUSB/Device/Handle.pm line 22.
at ./tmc line 17.

The code picks up the device, including it serial number. However, the writes get bounced.

Any insights? Source code below.
---jjh

#!/usr/bin/perl -w

File: tmc

use strict;
use USB::TMC;

my $d = USB::TMC->new(
vid => 0x1ab1,
pid => 0x0e11,
serial => 'DP8C210100038',
reset_device => 0,
debug_mode => 1,
term_char => "\n",
) or die "Cannot open PS.\n";

$d->write(data => ":SYST:REM\n");
$d->write(data => "*IDN?\n");
print $d->read(length => 100);

@amba
Copy link
Member

amba commented Mar 27, 2019

Dear @jjhatt,

Rigol devices are notorious for non-standard behavior of the USBTMC interface.
Some USBTMC drivers, like the linux kernel driver and python-usbtmc include special code to deal with the Rigol quirks. For some Rigol devices, the issue can be fixed by updating the firmware:
python-ivi/python-usbtmc#23

Hope this helps,
Simon

@jjhatt
Copy link
Author

jjhatt commented Mar 27, 2019 via email

@amba
Copy link
Member

amba commented Mar 27, 2019 via email

@jjhatt
Copy link
Author

jjhatt commented Mar 27, 2019 via email

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

No branches or pull requests

2 participants