On Sat, Jan 20, 2018 at 03:29:54PM +0100, Johnny Sorocil wrote:
> thank you, my fx2lafw LA is working again :)
Cool!

> But, it seems that DreamSourceLab DSLogic doesn't:
I do not have access to such device…  In fact, when I fixed the issue
with my Cypress FX2, I found out that the same problem existed with other
drivers, so I fixed those which where obvious, but mabe some less
obvious ones exist…

Maybe you can help hunting the problem?  Start by locating the place
where the first error message is emitted:

> LD_LIBRARY_PATH=/home/johnny/.opt/la_sigrok/lib
> /home/johnny/.opt/la_sigrok/bin/sigrok-cli
> --scan
> The following devices were found:
> demo - Demo device with 12 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3
> dreamsourcelab-dslogic - DreamSourceLab DSLogic Pro with 16 channels: 0 1 2
> 3 4 5 6 7 8 9 10 11 12 13 14 15
> 
> SIGROK_FIRMWARE_DIR=$HOME/src/la_sigrok/old/share/sigrok-firmware
> LD_LIBRARY_PATH=/home/johnny/.opt/la_sigrok/lib
> /home/johnny/.opt/la_sigrok/bin/sigrok-cli
> -d dreamsourcelab-dslogic --samples 10
> sr: dreamsourcelab-dslogic: Failed to send start command: 
> LIBUSB_ERROR_NO_DEVICE.
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

…then find what leads to this situations… (yeah, easy to say :-) but
their is really no need for a fancy debugger: just adding a bunch of
'printf()' to see the execution path help a lot!)

> sr: session: Could not start dreamsourcelab-dslogic device usb/2-1.2 
> acquisition.
> sr: dreamsourcelab-dslogic: Failed to send stop command: 
> LIBUSB_ERROR_NO_DEVICE.

This looks odd, if starting the device failed, their is probably no
good reason to continue code execution and trying acquisition nor
stopping the device…  Maybe some error return value is ignored…

Regards,
Romain
-- 
Romain Tartière <rom...@blogreen.org>        http://romain.blogreen.org/
pgp: 8234 9A78 E7C0 B807 0B59  80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to