Hello,

today we got hands on the Asix Sigma2. We especially ordered it because 
of the support of sigrok.
While I fully understand that open source software, supporting a wide 
range of different hardware types, can be incomplete at some points, I'm 
a bit disappointed that even the "Usage Example" in the wiki does not 
work at all (and maybe did never).

Here is a list of what I've come across with and how I worked around 
problems:

1) after doing anything with sigrok-cli (e.g. scanning devices) I get a 
double free.
This is because of asix-sigma.c:427 where ftdi_free is called instead of 
ftdi_deinit

2) I always get a "sigrok-cli only supports one device for capturing." 
even if I specify exactly one device using the "-d" option.
This is because run_session tries to find all devices (which will return 
the demo dummy device and the sigma in my case) and checks whether this 
device list is greater than one, ignoring the "-d" option.
My workaround here was to recompile libsigrok without the demo driver 
leaving only one device in the list.

3) The example uses the "--samples 5000000" option but the hwcaps of 
your driver does not enlist SR_HWCAP_LIMIT_SAMPLES, so all you get is
"Failed to configure sample limit.".

4) Finally I tried "sigrok-cli -d 0:samplerate=10m --time 1000 -O bits 
-p 1-4"
but the effect was more or less equivalent to "sleep 1". When I give an 
"-o outfile" option I'm left with an empty file.
Here is the output of loglevel 5:
--BEGIN---
sr: libsigrok loglevel set to 5.
srd: libsigrokdecode loglevel set to 5.
sr: Found ASIX SIGMA - Serial: A6021022
sr: sigma: Uploading firmware asix-sigma-50.fw
sr: sigma: Firmware uploaded
sr: session: starting
sr: bus: received SR_DF_HEADER
cli: Received SR_DF_HEADER
sr: bus: received SR_DF_META_LOGIC
cli: Received SR_DF_META_LOGIC
sr: session: running
--END-----

I'm missing some log messages saying that samples are actually transferred.

All problems were observed using the current git head. I also tried the 
newest tarballs of sourceforge, but the --samples thing was the same and 
--time didn't exist.

So my questions are: Have I done anything wrong? Is there maybe ANY 
revision I should check which at least captures some samples?

Regards,
markus

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to