Hi,

as already mentioned in my earlier mail we have implemented the API and
protocol for having a driver for our own open hardware and open software
device "hsa-tple".

Can you give help me how to use the session bus correctly as I haven't
found further documentation.

We use sigrok-cli with the time parameter:
> $ sudo sigrok-cli -l 5 -O vcd -o outfile.txt -d 
> hsa-tple:conn=/dev/ttyACM0:serialcomm=9600/8n1 --time=10000 --probes='0-7'
Or this way using samples counter (baudrate can furthermore be changed):
> $ sudo sigrok-cli -l 5 -O vcd -o outfile.txt -d 
> hsa-tple:conn=/dev/ttyACM0:serialcomm=9600/8n1 --samples=10000
> --probes='0-7'

Everything seems to work as excepted until we open and read the output
file. We always get "0" as timestamp.
How can this value be increased? What kind of meta data or usage is needed?
> $date Fri Jan 10 16:54:02 2014 $end
> $version libsigrok 0.2.2 $end
> $timescale 1 ms $end
> $scope module libsigrok $end
> $var wire 1 ! 0 $end
> $var wire 1 " 1 $end
> $var wire 1 # 2 $end
> $var wire 1 $ 3 $end
> $var wire 1 % 4 $end
> $var wire 1 & 5 $end
> $var wire 1 ' 6 $end
> $var wire 1 ( 7 $end
> $upscope $end
> $enddefinitions $end
> $dumpvars
> #0
> 1!
> #0
> 1$
> #0
> 0!
> #0
> 1!
> #0
> 0!
> #0
> 1!
> #0
> 0!
> #0
> ...

We send a SR_DF_HEADER and a SR_DF_END packet. Inbetween there are a lot
of SR_DF_LOGIC packets.

Is the last one the problem? Are we only allowed to send one packet with
all samples at once? At the moment we start a measurement, stop it, dump
the samples. During the receiption of samples we already give them to
the session bus.

What are the SR_DF_FRAME_BEGIN and SR_DF_FRAME_END used for? Should they
be used instead/ additionally?

Finally another question: we only save samples when input levels have
changed to save memory. This is a kind of internal VCD. Instead of
creating a whole lot of samples between two sample timestamps that are
the same (what is currently not implemented yet) -- is there a way
around? Can this be ported to be RLE or something?

Help is very appreciated! Thanks in advance.

Bye,
Matthias

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to