From: Michael Gernoth Date: Sun, 6 Jun 2010 21:03:04 +0000 (+0200) Subject: follow USBTMC spec more closely, more to come... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/commitdiff_plain/0926876978e80ae1e9c29d9f33a8f8ec0babaf5e follow USBTMC spec more closely, more to come... --- diff --git a/usbtmc.c b/usbtmc.c index 729f6db..622ea80 100644 --- a/usbtmc.c +++ b/usbtmc.c @@ -61,9 +61,9 @@ int usbtmc_sendscpi(usb_dev_handle *dev, char* cmd, buff[3]=0; int2chars(buff+4, cmdlen); buff[8]=1; - buff[9]=0x37; - buff[10]=0x39; - buff[11]=0x39; + buff[9]=0x00; + buff[10]=0x00; + buff[11]=0x00; //fprintf(stderr,"Writing header len=%d\n", cmdlen); //printb(buff,12); r=usb_bulk_write(dev, 1, (char*)buff, 12, USB_TIMEOUT); @@ -77,7 +77,7 @@ int usbtmc_sendscpi(usb_dev_handle *dev, char* cmd, seq++; buff[1]=seq; buff[2]=~seq; //nseq int2chars(buff+4,0x40); - buff[8]=1; + buff[8]=0; buff[9]=0xA; buff[10]=0; buff[11]=0;