On Tue, Mar 11, 2014 at 09:30:44PM +0100, Tom Schouten wrote:
> Hi devs,
> 
> Yesterday I got pointed to sigrok after writing pyla as a 2-weekend hack:
> https://github.com/zwizwa/pyla
> I had used the saleae library before in an ad-hoc way for some iso7816 
> sniffing
> https://github.com/zwizwa/sl-apdu
> so this was an attempt to clean it up a bit.
> 
> I was wondering if anyone has any ideas about how i can integrate pyla 
> or have it be absorbed in the sigrok project. I don't see the point in 
> me doing things different for just the sake of it..

Hi. I'm didn't use so far any of the decoding stack of sigrok but I'll
try to answer the best as I can.

> 
> Some of the ideas behind pyla:
> 
> - Performant enough to do real time protocol analysis for a couple of 
> spi ports and uarts in parallel on my 2 year old laptop, running the 
> Saleae 8-port at 24MHz.  In practice this means C++ (or C) for the 
> frontend.  Python is fine after the bytes have been parsed.

I don't know how the sigrok decoders stand with regard to performance, I
overheard a conversation about them where it was suggested that they
could use a performance boost.

The decoders are written in python, I'm not sure if it's possible to
write them in C (I guess with some additional work it should be possible).

> - C++ interface for writing the procotol analyzers is (and should stay) 
> really simple. Currently it uses std::vector of bytes in and out.  The 
> analyzer code is abstracted in such a way that it can also run on a 
> bare-bones or RTOS microcontroller in a DMA ISR to side-step the high 
> bandwidth data transport to PC problem.
> 
> - Use swig to automate wrapping to python so python can be used for 
> ad-hoc parsing after the core protocol analysis is done.  I like the 
> python generators for writing ad-hoc debug scripts.

There are SWIG bindings for libsigrok so you can write your own custom
client in python.

Here are some additional links that may or may not answer some of your
questions better than me:
    http://sigrok.org/wiki/Libsigrok
    http://sigrok.org/wiki/Libsigrokdecode
    http://sigrok.org/wiki/Protocol_decoder_HOWTO

I hope that this provides some insight of what sigrok is and what
functionality it provides.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to