Hello,
Congratulations, and a huge thank you to the Sigrok developers! Sigrok
has become an amazing piece of open source software!
I'm working on an open hardware project that uses Sigrok/Pulseview for
front end and protocol decoding. It uses the "SUMP" protocol that's
compatible with the Open Bench Logic Sniffer driver. I've noticed some
things that might suggest a bug in the driver.
1. When first loaded the number of samples is uninitialized, and "RUN"
sends a request for 0xFFFFFFFF samples. This seems to cause Pulseview to
stop responding, maybe because it is waiting for data it will never get.
After the number of samples drop down is changed once it requests the
correct number of samples.
2. The first capture always works, but repeated captures often show no
data is returned. This seems consistent with the note on the Sigrok wiki
for the Open Bench Logic Sniffer hardware. If I switch back to demo
device and then back to the hardware it works the first time, every time.
For issue #2 I have confirmed that:
1. This happens on all hardware using the SUMP driver (Logic
Sniffer(FPGA), Logic Pirate, Bus Pirate, IR Toy, Logic Shrimp, current
project (microcontroller))
2. Sigrok is sending correct setup/run commands
3. The hardware is receiving the correct commands and returning data
every time
4. This does not happen with the javascript client that uses the same
SUMP protocol
Minor suggestion, not related to the issues, but just a thought while I
was debugging:
1. Best practice would be to send 0x00 5 times before issuing the
capture commands. This ensures that the hardware is in reset state if a
previous command was interrupted/incomplete
Is there anyway I can help debug or find a fix? I looked at the driver
source briefly, but nothing really stood out.
Thank you and best regards,
Ian
------------------------------------------------------------------------------
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