X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fscpi%2Fscpi_usbtmc_libusb.c;h=7e49a8a0f12b9aef7a195cb28e5da801b9c83329;hp=6f2bc81940710313f4d5dbd18c4d310ba6687814;hb=9a4cc7dd3811884efe4742ade48b19db0120b66e;hpb=b33606718cebd776723c18de0a17efbca2d69525 diff --git a/src/scpi/scpi_usbtmc_libusb.c b/src/scpi/scpi_usbtmc_libusb.c index 6f2bc819..7e49a8a0 100644 --- a/src/scpi/scpi_usbtmc_libusb.c +++ b/src/scpi/scpi_usbtmc_libusb.c @@ -107,6 +107,7 @@ static struct usbtmc_blacklist blacklist_remote[] = { { 0x1ab1, 0x04b0 }, /* Rigol DS2000 series */ { 0x0957, 0x0588 }, /* Agilent DSO1000 series (rebadged Rigol DS1000) */ { 0x0b21, 0xffff }, /* All Yokogawa devices */ + { 0xf4ec, 0xffff }, /* All Siglent SDS devices */ ALL_ZERO }; @@ -370,6 +371,8 @@ static int scpi_usbtmc_libusb_open(struct sr_scpi_dev_inst *scpi) return SR_ERR; } + libusb_reset_device(usb->devhdl); + /* Get capabilities. */ ret = libusb_control_transfer(usb->devhdl, LIBUSB_ENDPOINT_IN | LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_INTERFACE,