Dear sigrok developers/users,
I recently installed sigrok via the apt-get install procedure on Ubuntu
(15.10 i86). Doing this I got the impression that I correctly installed the
complete software suite (thus libsigrok, pulseview etc), as I was able to
open pulseview and use the sigrok-cli.
The problems arose when I wanted to connect my Hantek 6022BE.
Just installing sigrok does not enable me to address my device at this
point. I tried manually installing the *fx2lafw* driver from the sigrok
website and followed the steps (even though it came also with installing
the sigrok suite). Now i have /share/sigrok-firmware that contains the
firmware files.
I looked up the *z60_libsigrok.rules* file and could not find this.
Retrieved it from the internet and added (as there was no entry for the
6022BE in the original)
# Hantek 6022BE
ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="6022", MODE="664",
GROUP="plugdev", TAG+="uaccess"
ATTRS{idVendor}=="04b5", ATTRS{idProduct}=="6022", MODE="664",
GROUP="plugdev", TAG+="uaccess"
Which i found in this thread
https://sourceforge.net/p/sigrok/mailman/message/35063347/
What was interesting was that I found a *40-libsigrok2.rules* in the
location /lib/udev/rules.d. So at this point I had a hunch that I am mixing
things up. It seems that I installed libsigrok2 (when I look in my package
manager, this seems to be the case). This deviates from the information and
description on the sigrok wiki (well at least in my case).
After I restarted udev I re-connected the device and checked with lsusb,
which gave the expected result (indicating: ID 04b4:6022 Cypress
Semiconductor Corp.). Screen copy I put at the and of my mail.
At this point I was confident that I could get it working, but when I tried
to upload the driver to the device it will not find the device (while it is
there).
simon@Linux-PC:~$ sudo sigrok-cli --driver=fx2lafw --show -l 5
sr: libsigrok loglevel set to 5.
sr: backend: Sanity-checking all drivers.
sr: backend: Sanity-checking all input modules.
sr: backend: Sanity-checking all output modules.
srd: libsigrokdecode loglevel set to 5.
sr: hwdriver: Initializing driver 'fx2lafw'.
sr: fx2lafw: Failed to get product string descriptor: LIBUSB_ERROR_PIPE.
sr: hwdriver: Scan of 'fx2lafw' found 0 devices.
No devices found.
or
simon@Linux-PC:~$ sudo sigrok-cli --driver=fx2lafw --scan -l 5
sr: libsigrok loglevel set to 5.
sr: backend: Sanity-checking all drivers.
sr: backend: Sanity-checking all input modules.
sr: backend: Sanity-checking all output modules.
srd: libsigrokdecode loglevel set to 5.
sr: hwdriver: Initializing driver 'fx2lafw'.
sr: fx2lafw: Failed to get product string descriptor: LIBUSB_ERROR_PIPE.
sr: hwdriver: Scan of 'fx2lafw' found 0 devices.
So at this moment I am stuck. I think I did all the right steps, but
somehow it does not find the device. What makes it even more difficult, I
am pretty much a rookie when it comes to linux. So it might be that I am
missing something trivial or else.
Sorry to bug you with this, I really tried my best finding a solution
online before posting, but it is keeping my busy for some days now. Any
suggestions or directions would be much appreciated.
Regards,
Simon Lansbergen
Screen copy of lsusb before loading (also after).
simon@Linux-PC:~$ lsusb -s 011 -v
*Bus 001 Device 011: ID 04b4:6022 Cypress Semiconductor Corp. *
*Device Descriptor:*
* bLength 18*
* bDescriptorType 1*
* bcdUSB 2.00*
* bDeviceClass 255 Vendor Specific Class*
* bDeviceSubClass 255 Vendor Specific Subclass*
* bDeviceProtocol 255 Vendor Specific Protocol*
* bMaxPacketSize0 64*
* idVendor 0x04b4 Cypress Semiconductor Corp.*
* idProduct 0x6022 *
* bcdDevice 0.00*
* iManufacturer 0 *
* iProduct 0 *
* iSerial 0 *
* bNumConfigurations 1*
* Configuration Descriptor:*
* bLength 9*
* bDescriptorType 2*
* wTotalLength 171*
* bNumInterfaces 1*
* bConfigurationValue 1*
* iConfiguration 0 *
* bmAttributes 0x80*
* (Bus Powered)*
* MaxPower 100mA*
* Interface Descriptor:*
* bLength 9*
* bDescriptorType 4*
* bInterfaceNumber 0*
* bAlternateSetting 0*
* bNumEndpoints 0*
* bInterfaceClass 255 Vendor Specific Class*
* bInterfaceSubClass 255 Vendor Specific Subclass*
* bInterfaceProtocol 255 Vendor Specific Protocol*
* iInterface 0 *
* Interface Descriptor:*
* bLength 9*
* bDescriptorType 4*
* bInterfaceNumber 0*
* bAlternateSetting 1*
* bNumEndpoints 6*
* bInterfaceClass 255 Vendor Specific Class*
* bInterfaceSubClass 255 Vendor Specific Subclass*
* bInterfaceProtocol 255 Vendor Specific Protocol*
* iInterface 0 *
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x01 EP 1 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x81 EP 1 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x02 EP 2 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x04 EP 4 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x86 EP 6 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x88 EP 8 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Interface Descriptor:*
* bLength 9*
* bDescriptorType 4*
* bInterfaceNumber 0*
* bAlternateSetting 2*
* bNumEndpoints 6*
* bInterfaceClass 255 Vendor Specific Class*
* bInterfaceSubClass 255 Vendor Specific Subclass*
* bInterfaceProtocol 255 Vendor Specific Protocol*
* iInterface 0 *
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x01 EP 1 OUT*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0040 1x 64 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x81 EP 1 IN*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0040 1x 64 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x02 EP 2 OUT*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x04 EP 4 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x86 EP 6 IN*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x88 EP 8 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Interface Descriptor:*
* bLength 9*
* bDescriptorType 4*
* bInterfaceNumber 0*
* bAlternateSetting 3*
* bNumEndpoints 6*
* bInterfaceClass 255 Vendor Specific Class*
* bInterfaceSubClass 255 Vendor Specific Subclass*
* bInterfaceProtocol 255 Vendor Specific Protocol*
* iInterface 0 *
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x01 EP 1 OUT*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0040 1x 64 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x81 EP 1 IN*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0040 1x 64 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x02 EP 2 OUT*
* bmAttributes 1*
* Transfer Type Isochronous*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x04 EP 4 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x86 EP 6 IN*
* bmAttributes 1*
* Transfer Type Isochronous*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x88 EP 8 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
*Device Qualifier (for other device speed):*
* bLength 10*
* bDescriptorType 6*
* bcdUSB 2.00*
* bDeviceClass 255 Vendor Specific Class*
* bDeviceSubClass 255 Vendor Specific Subclass*
* bDeviceProtocol 255 Vendor Specific Protocol*
* bMaxPacketSize0 64*
* bNumConfigurations 1*
*Device Status: 0x0000*
* (Bus Powered)*
*simon@Linux-PC:~$ ^C*
*simon@Linux-PC:~$ Transfer Type Bulk*
*Transfer: command not found*
*simon@Linux-PC:~$ Synch Type None*
*Synch: command not found*
*simon@Linux-PC:~$ Usage Type Data*
*No command 'Usage' found, did you mean:*
* Command 'osage' from package 'graphviz' (main)*
*Usage: command not found*
*simon@Linux-PC:~$ wMaxPacketSize 0x0200 1x 512 bytes*
*wMaxPacketSize: command not found*
*simon@Linux-PC:~$ bInterval 0*
*bInterval: command not found*
*simon@Linux-PC:~$ Device Qualifier (for other device speed):*
*bash: syntax error near unexpected token `('*
*simon@Linux-PC:~$ bLength 10*
*bLength: command not found*
*simon@Linux-PC:~$ bDescriptorType 6*
*bDescriptorType: command not found*
*simon@Linux-PC:~$ bcdUSB 2.00*
*bcdUSB: command not found*
*simon@Linux-PC:~$ bDeviceClass 255 Vendor Specific Class*
*bDeviceClass: command not found*
*simon@Linux-PC:~$ bDeviceSubClass 255 Vendor Specific Subclass*
*bDeviceSubClass: command not found*
*simon@Linux-PC:~$ bDeviceProtocol 255 Vendor Specific Protocol*
*bDeviceProtocol: command not found*
*simon@Linux-PC:~$ bMaxPacketSize0 64*
*bMaxPacketSize0: command not found*
*simon@Linux-PC:~$ bNumConfigurations 1*
*bNumConfigurations: command not found*
*simon@Linux-PC:~$ lsusb -s 011 -v*
*Bus 001 Device 011: ID 04b4:6022 Cypress Semiconductor Corp. *
*Device Descriptor:*
* bLength 18*
* bDescriptorType 1*
* bcdUSB 2.00*
* bDeviceClass 255 Vendor Specific Class*
* bDeviceSubClass 255 Vendor Specific Subclass*
* bDeviceProtocol 255 Vendor Specific Protocol*
* bMaxPacketSize0 64*
* idVendor 0x04b4 Cypress Semiconductor Corp.*
* idProduct 0x6022 *
* bcdDevice 0.00*
* iManufacturer 0 *
* iProduct 0 *
* iSerial 0 *
* bNumConfigurations 1*
* Configuration Descriptor:*
* bLength 9*
* bDescriptorType 2*
* wTotalLength 171*
* bNumInterfaces 1*
* bConfigurationValue 1*
* iConfiguration 0 *
* bmAttributes 0x80*
* (Bus Powered)*
* MaxPower 100mA*
* Interface Descriptor:*
* bLength 9*
* bDescriptorType 4*
* bInterfaceNumber 0*
* bAlternateSetting 0*
* bNumEndpoints 0*
* bInterfaceClass 255 Vendor Specific Class*
* bInterfaceSubClass 255 Vendor Specific Subclass*
* bInterfaceProtocol 255 Vendor Specific Protocol*
* iInterface 0 *
* Interface Descriptor:*
* bLength 9*
* bDescriptorType 4*
* bInterfaceNumber 0*
* bAlternateSetting 1*
* bNumEndpoints 6*
* bInterfaceClass 255 Vendor Specific Class*
* bInterfaceSubClass 255 Vendor Specific Subclass*
* bInterfaceProtocol 255 Vendor Specific Protocol*
* iInterface 0 *
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x01 EP 1 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x81 EP 1 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x02 EP 2 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x04 EP 4 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x86 EP 6 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x88 EP 8 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Interface Descriptor:*
* bLength 9*
* bDescriptorType 4*
* bInterfaceNumber 0*
* bAlternateSetting 2*
* bNumEndpoints 6*
* bInterfaceClass 255 Vendor Specific Class*
* bInterfaceSubClass 255 Vendor Specific Subclass*
* bInterfaceProtocol 255 Vendor Specific Protocol*
* iInterface 0 *
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x01 EP 1 OUT*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0040 1x 64 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x81 EP 1 IN*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0040 1x 64 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x02 EP 2 OUT*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x04 EP 4 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x86 EP 6 IN*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x88 EP 8 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Interface Descriptor:*
* bLength 9*
* bDescriptorType 4*
* bInterfaceNumber 0*
* bAlternateSetting 3*
* bNumEndpoints 6*
* bInterfaceClass 255 Vendor Specific Class*
* bInterfaceSubClass 255 Vendor Specific Subclass*
* bInterfaceProtocol 255 Vendor Specific Protocol*
* iInterface 0 *
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x01 EP 1 OUT*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0040 1x 64 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x81 EP 1 IN*
* bmAttributes 3*
* Transfer Type Interrupt*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0040 1x 64 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x02 EP 2 OUT*
* bmAttributes 1*
* Transfer Type Isochronous*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x04 EP 4 OUT*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x86 EP 6 IN*
* bmAttributes 1*
* Transfer Type Isochronous*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 1*
* Endpoint Descriptor:*
* bLength 7*
* bDescriptorType 5*
* bEndpointAddress 0x88 EP 8 IN*
* bmAttributes 2*
* Transfer Type Bulk*
* Synch Type None*
* Usage Type Data*
* wMaxPacketSize 0x0200 1x 512 bytes*
* bInterval 0*
*Device Qualifier (for other device speed):*
* bLength 10*
* bDescriptorType 6*
* bcdUSB 2.00*
* bDeviceClass 255 Vendor Specific Class*
* bDeviceSubClass 255 Vendor Specific Subclass*
* bDeviceProtocol 255 Vendor Specific Protocol*
* bMaxPacketSize0 64*
* bNumConfigurations 1*
*Device Status: 0x0000*
* (Bus Powered)*
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel