DreamSourceLab / DSView

An open source multi-function instrument for everyone
www.dreamsourcelab.com
GNU General Public License v3.0
1.13k stars 416 forks source link

LIBUSB_ERROR_IO #2

Closed kasbah closed 10 years ago

kasbah commented 10 years ago

Hey, just unpacked my shiny new DSLogic (looks great!) and compiled the software. The GUI freezes though when I run DSlogic and press the aquire (play) button. This is on 64-bit Ubuntu 12.04.4. You can get debs of my binaries (made with checkinstall) here: https://seacloud.cc/f/ad1149d592/

Here is what is printed to terminal:

sr: Sanity-checking all drivers.
sr: Sanity-checking all input modules.
sr: Sanity-checking all output modules.
sr: hwdriver: Initializing driver 'demo'.
sr: hwdriver: Initializing driver 'DSLogic'.
sr: hwdriver: Scan of 'demo' found 1 devices.
sr: Found an DSLogic device.
sr: hwdriver: Scan of 'DSLogic' found 1 devices.
DSLogic attaced!

sr: Firmware upload was not needed.
sr: Opened device 0 on 2.34, interface 0, firmware 1.0.
sr: Detected REVID=1, it's a Cypress CY7C68013A (FX2LP).
sr: Configure FPGA using /usr/local/bin/res/DSLogic.bin
sr: Configure 340604 bytes
sr: FPGA configure done
Starting a hotplug thread...

sr: session: sr_session_stop: session was NULL
sr: session: Starting...
sr: Stop Previous DSLogic acquisition!
sr: FPGA setting done. trigger_mode = 0; trigger_stages = 0; trigger_mask0 = 65535; trigger_value0 = 0; trigger_edge0 = 0
sr: GPIF delay = 0, clocksource = 30MHz.
sr: DSLogic Hardware: Starting acquisition.
sr: DSLogic Hardware: Sending SR_DF_HEADER packet.
sr: session: bus: Received SR_DF_HEADER packet.
sr: session: Running...
sr: receive trigger pos handle...
sr: receive_trigger_pos(): status 0; timeout 0; received 512 bytes.
sr: session: bus: Received SR_DF_TRIGGER packet.
sr: Failed to submit transfer: LIBUSB_ERROR_IO.
sr: receive_trigger_pos: could not start data transfer(-1)
sr: session: Stopping.
UweBonnes commented 10 years ago

Failed to submit transfer: LIBUSB_ERROR_IO seems to happen with high transfer rate, long transfers and/or many channel. Try with lower sample rate...

DreamSourceLab commented 10 years ago

We have found the cause. This issue will be fixed in next version, which will be released recently.