On Tue, 2020-10-20 at 17:45 +0200, Christo Crause wrote:
>
> I'm a relatively new user of sigrok/PulseView and ran into an issue trying
> to use an FT232H on an Adafruit breakout board.  When scanning for FDTI
> devices (see output below) it gives the following error (which seems to be
> similar to this bug report: https://sigrok.org/bugzilla/show_bug.cgi?id=1316).
> The key error seems to be "Failed to get the FTDI strings", while the lsusb
> output seems to indicate a problem listing certain descriptors such as
> iManufacturer, iProduct etc.
>
> Any guidance on how to fix this would be appreciated.
>
> I can successfully connect to and pull data from a Rigol scope.
>
> sudo sigrok-cli -l 5 -d ftdi-la --scan
> sr: [00:00.000000] log: libsigrok loglevel set to 5.
> sr: [00:00.000077] backend: libsigrok 0.5.0/4:0:0 (rt: 0.5.0/4:0:0).
> sr: [00:00.000165] backend: Libs: glib 2.54.1 (rt: 2.56.4/5604:4), libzip
> 1.1.2, libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1), libusb-1.0
> 1.0.21.11156, libftdi 1.3.
> sr: [00:00.000200] backend: Host: x86_64-pc-linux-gnu, little-endian.
> sr: [00:00.000225] backend: SCPI backends: TCP, RPC, serial, USBTMC.
> sr: [00:00.000286] backend: Sanity-checking all drivers.
> sr: [00:00.000322] backend: Sanity-checking all input modules.
> sr: [00:00.000344] backend: Sanity-checking all output modules.
> sr: [00:00.000368] backend: Sanity-checking all transform modules.
> srd: libsigrokdecode loglevel set to 5.
> sr: [00:00.017041] ftdi-la: Number of FTDI devices found: 1
> sr: [00:00.018366] ftdi-la: Failed to get the FTDI strings: -7
> sr: [00:00.018475] hwdriver: Scan of 'ftdi-la' found 0 devices.

Error code -7 translates to SR_ERR_DEV_CLOSED, a device is
expected to be opened for an activity but isn't.

A quick look at the scan related parts of
src/hardware/ftdi-la/api.c suggests that neither the scan()
routine nor its descendents open the device at this time.
Only for later use after the scan has completed.

Can somebody who has access to the hardware take a look?


virtually yours
Gerhard Sittig
--
     If you don't understand or are scared by any of the above
             ask your parents or an adult to help you.


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to