On Wed, Apr 14, 2010 at 06:38:26PM +0200, pieter.heremans wrote:
> hey bert & all,
Hi Pieter,
> i did quick hack (don't trust my code - i don't have an overview yet
> of how things really work) -- it works for me in cli mode
>
> but not in the gui -- seems 'source_cb_add' is not implemented in the
> gui ?
Not yet, the GUI is not yet fully functional, I'm working on fixing
that. Expect improvements soonish.
> am i right, or is there another way to get the data in ?
You can load a file (any file really), it will be interpreted as
binary 8-channel logic analyzer output (each byte denotes 8 signal
values).
But as mentioned above, the UI is not too useful yet, zoom and scroll
don't yet work properly either (partially yes, but it needs fixing).
> --- /dev/null
> +++ b/libsigrok/hardware/dummy/dummy.c
> @@ -0,0 +1,355 @@
> +/*
> + * This file is part of the sigrok project.
> + *
> + * Copyright (C) 2010 Bert Vermeulen <bert@...>
That should be
Copyright (C) 2010 Pieter Heremans <pieter@...>
rather, I think, as you wrote the code.
> +#define NUM_PROBES 32
> +#define TRIGGER_TYPES "01"
Such a demo driver would be useful indeed. I haven't been thinking much
about how to properly implement it, but maybe some kind of Python script
integration would be useful (similar to the Python protocol decoder
scripts we'll have). That would allow us to write small Python scripts
to generate any kind of sample data on-the-fly (I2C, SPI, whatever)
with certain characteristics and timings etc.
The "dummy" (or "demo") driver should then be able to provide any
configurable number of channels, configurable samplerates, etc. so that
the Python scripts can generate the various demo sample streams.
That's for later though, for now I think a simple C code implementation
of an I2C or SPI stream or similar in the dummy.c file should be fine. We'll
generalize that later, when the Python integration is more usable
(that's being heavily worked on right now, there's no real stable API
or anything yet).
Cheers, Uwe.
--
http://www.hermann-uwe.de | http://www.randomprojects.orghttp://www.crazy-hacks.org | http://www.unmaintained-free-software.org

hey bert & all,
i did quick hack (don't trust my code - i don't have an overview yet
of how things really work) -- it works for me in cli mode
but not in the gui -- seems 'source_cb_add' is not implemented in the
gui ? am i right, or is there another way to get the data in ?
cu
ptr_
On Wed, Apr 14, 2010 at 12:03 PM, Bert Vermeulen <bert@...> wrote:
> pieter.heremans wrote:
>
>> i don't own a logic alnalyzer (yet) - but want to have a look at
>> sigrok to test the basic functionalities
>>
>> is there a 'dummy' interface -- a device spitting out random bits --
>> or maybe more useful, reading a capture file and replayng it?
>
> Hey Pieter,
>
> We don't have a dummy interface yet, but it is an item on the TODO list
> (feel free to take it on). As for taking input from a capture (or other)
> file, that's being worked on right now. We're also going to be making
> available sample captures, to test protocol decoders etc.
>
>
> --
> Bert Vermeulen bert@... email/xmpp
>
--
http://www.L45.be/voidpointer
0493 52 5009

pieter.heremans wrote:
> i don't own a logic alnalyzer (yet) - but want to have a look at
> sigrok to test the basic functionalities
>
> is there a 'dummy' interface -- a device spitting out random bits --
> or maybe more useful, reading a capture file and replayng it?
Hey Pieter,
We don't have a dummy interface yet, but it is an item on the TODO list
(feel free to take it on). As for taking input from a capture (or other)
file, that's being worked on right now. We're also going to be making
available sample captures, to test protocol decoders etc.
--
Bert Vermeulen bert@... email/xmpp

hey,
i don't own a logic alnalyzer (yet) - but want to have a look at
sigrok to test the basic functionalities
is there a 'dummy' interface -- a device spitting out random bits --
or maybe more useful, reading a capture file and replayng it?
cu
ptr_
--
http://www.L45.be/voidpointer
0493 52 5009